Giving into the offlineimap nametrans for google. Spaces in my folder names were causing problems..

master
Dustin Swan 11 years ago
parent d4d7bd462e
commit fb7abab112

@ -26,27 +26,27 @@ tags = -new;+inbox
[Filter.8] [Filter.8]
message = Drafts message = Drafts
query = folder:iocom/INBOX.Drafts OR 'folder:"gmail/[Gmail].Drafts"' query = folder:iocom/INBOX.Drafts OR folder:gmail/drafts
tags = -new;+drafts tags = -new;+drafts
[Filter.10] [Filter.10]
message = Sent message = Sent
query = folder:iocom/INBOX.Sent OR 'folder:"gmail/[Gmail].Sent Mail"' query = folder:iocom/INBOX.Sent OR folder:gmail/sent
tags = -new;+sent tags = -new;+sent
[Filter.12] [Filter.12]
message = Spam message = Spam
query = folder:iocom/INBOX.spam OR 'folder:"gmail/[Gmail].Spam"' query = folder:iocom/INBOX.spam OR folder:gmail/spam
tags = -new;+spam tags = -new;+spam
[Filter.14] [Filter.14]
message = Trash message = Trash
query = folder:iocom/INBOX.Trash OR 'folder:"gmail/[Gmail].Trash"' query = folder:iocom/INBOX.Trash OR folder:gmail/trash
tags = -new;+trash tags = -new;+trash
[Filter.15] [Filter.15]
message = Archived message = Archived
query = folder:iocom/INBOX.Archive OR 'folder:"gmail/[Gmail].All Mail"' query = folder:iocom/INBOX.Archive OR folder:gmail/archive
tags = -new;-inbox tags = -new;-inbox
# IOCOM specific folders # IOCOM specific folders
@ -79,6 +79,7 @@ folders = iocom/INBOX/ iocom/INBOX.Archive/
iocom/INBOX/ = 'NOT tag:inbox':iocom/INBOX.Archive/ iocom/INBOX/ = 'NOT tag:inbox':iocom/INBOX.Archive/
iocom/INBOX.Archive/ = 'tag:inbox':iocom/INBOX/ iocom/INBOX.Archive/ = 'tag:inbox':iocom/INBOX/
gmail/INBOX = 'NOT tag:inbox':gmail/archive/
#gmail/INBOX/ = 'NOT tag:inbox':"gmail/[Gmail].All Mail" #gmail/INBOX/ = 'NOT tag:inbox':"gmail/[Gmail].All Mail"
#gmail/[Gmail].Important/ = 'NOT tag:inbox':"gmail/[Gmail].All Mail" #gmail/[Gmail].Important/ = 'NOT tag:inbox':"gmail/[Gmail].All Mail"

@ -2,8 +2,9 @@
# For mail my other MUAs has moved # For mail my other MUAs has moved
# Look for mail in folder INBOX.Archive that have inbox. Remove inbox. # Look for archived mail that have inbox. Remove inbox.
notmuch tag -inbox -- folder:INBOX.Archive tag:inbox notmuch tag -inbox -- folder:INBOX.Archive tag:inbox
notmuch tag -inbox -- tag:inbox AND tag:gmail NOT folder:gmail/INBOX
# Initial tagging for new mail # Initial tagging for new mail
afew --tag --new afew --tag --new

@ -28,6 +28,13 @@ status_backend = sqlite
[Repository GmailLocal] [Repository GmailLocal]
type = Maildir type = Maildir
localfolders = ~/.mail/gmail localfolders = ~/.mail/gmail
nametrans = lambda folder: re.sub('spam', '[Gmail].Spam',
re.sub('drafts', '[Gmail].Drafts',
re.sub('sent', '[Gmail].Sent Mail',
re.sub('starred', '[Gmail].Starred',
re.sub('trash', '[Gmail].Trash',
re.sub('important', '[Gmail].Important',
re.sub('archive', '[Gmail].All Mail', folder)))))))
[Repository GmailRemote] [Repository GmailRemote]
type = Gmail type = Gmail
@ -35,3 +42,10 @@ remoteuser = dustinswan@gmail.com
remotepasseval = gmail_password() remotepasseval = gmail_password()
realdelete = no realdelete = no
sslcacertfile = /usr/local/opt/curl-ca-bundle/share/ca-bundle.crt sslcacertfile = /usr/local/opt/curl-ca-bundle/share/ca-bundle.crt
nametrans = lambda folder: re.sub('.*Spam$', 'spam',
re.sub('.*Drafts$', 'drafts',
re.sub('.*Sent Mail$', 'sent',
re.sub('.*Starred$', 'starred',
re.sub('.*Trash$', 'trash',
re.sub('.*Important$', 'important',
re.sub('.*All Mail$', 'archive', folder)))))))

Loading…
Cancel
Save