This email is about syncing gmail with offline imap. Nothing
on-topic here...
Post by gtI use offlineimap + mutt (gmail account). I used to use filters with
gmail, but using filters all my mail was downloaded multiple times by
offlineimap. I have even tried coloured filters with mutt, but didn't
really like them.
Oh, make sure you don't sync gmail's "all mail" folder, it has a
second copy of everything. Here's what I have in my .offlineimaprc:
nametrans = lambda folder: re.sub('.*Spam$', 'spam', re.sub('.*Drafts$', 'drafts', re.sub('.*Sent Mail$', 'out', re.sub('.*Starred$', 'starred', re.sub('.*Trash$', 'trash', re.sub('.*All Mail$', 'archive', re.sub('INBOX', 'in', folder)))))))
folderfilter = lambda foldername: foldername in ['loongson', 'lemote', 'cib', 'cmus', 'dne', 'gc', 'INBOX', '[Gmail]/Drafts', '[Gmail]/Sent Mail']
The first line gives you reasonable names for the standard gmail
folders ("in", "out", "drafts") the second selects the folders to
sync (using the remote names, not the nice local ones.)
The first few foldernames above are the "tags" I've set up in
gmail. I set my gmail filters to tag with these, and skip the
inbox.
Now I only sync/download/store one copy of each e-mail.
This also stops it from syncing the spam folder.
Take care, - Jason