I wrote this, which was apparently too long: http://dl.dropbox.com/u/340087/drops/10.31.14/email-31-205457.md
Can I get some suggestions on how people are doing backups of their email? I am using IMAP, google specifically, for domains, not just a plain email address, but there are those to consider as well.
I am looking for some sort of IMAP rsync type system, but since google has a strange way of interpreting an RFC and is using labels/tags as folders, and how a message can show up in x places, not just one, forces me to look at scripting this as a large code base that can basically be a small IMAP MTA that saves files in a directory based system that is comparable with say "dovecot" or whatever other IMAP MTA/IMAP store there is that is using a open format that won't bite me 20 years from now.
What is your IMAP backup solution?
By default it will do a uni-directional transfer, but it accounts for duplicates and can be instructed to delete emails that don't exist on the originating side to have a more sync-like behavior. It also has a variety of filtering tools built in (ie. only transfer last week's emails, or only emails with a particular header).
If I sound like a fan-boy, it's because I am: I would not have been so comfortable in my work without having solid backs, it's saved me literally days of coding up specialized tools for various tasks and repairs, and saved me from dataloss more than once.
http://imapsync.lamiral.info/
My workflow was to run a VPS with Dovecot and pull my email from my various accounts on to that, and then put the Dovecot maildir under git, and then occasionally bundle it up into a 7z archive with max compression (nowadays, I might look into xz) to pull onto an external hard drive.