Gmail with IMAP sounds like a terrific idea, but when I realized that for me there was the possibility of duplicate emails, I was not too keen on the idea.

If I understand correctly, labels are like folders in IMAP-ville, and since Gmail emails can have more than one label, I believe that they would end up in both IMAP folders. I don’t want that, and was so pleased to learn about the “Google Labs” advanced IMAP features. It allows you to show certain labels to IMAP, or not.

I haven’t tried it yet, but I’m working on a filter setup so that my IMAP folders don’t have duplicate messages. If I can get that working, I’ll be quite pleased. :-)

So far, seems to be working well. I hadn’t used offlineimap with Gmail for awhile so thanks to sacha chua for a quick Gmail / offlineimap overview, and for tips on nametrans to get rid of the [GMail] prefix.

UPDATE: I figured out how to get my prefixes working right for this:

nametrans = lambda foldername: re.sub(r'^(\[G.*ail\])', r'INBOX', re.sub('^(2)', 'INBOX.2', foldername))