News for hackers. Stuff that matters.
Re:A Hacker's Replacement for Gmail by daurnimator on Saturday June 29, 2013 @11:51PM (#5964637)
Does anyone have a gmail exporter?

i.e. something that imports email from gmail WITH labels.

Re:A Hacker's Replacement for Gmail by mjn on Sunday June 30, 2013 @12:18AM (#5964694)
This is a proof-of-concept someone wrote, but I have no idea how tested it is: http://git.zx2c4.com/gmail-notmuch/

It syncs Gmail labels to notmuch tags.

As I understand it: by default, Gmail treats labels as IMAP folders, which means a standard IMAP exporter will end up with multiple copies of messages with more than one label. The workaround is to only export the "All Mail" folder, and then add support for Gmail's custom attributes, namely retrieving the X-GM-LABELS [1] attribute for each message and then doing something with it (in this case, storing it as notmuch tags).

[1] https://developers.google.com/gmail/imap_extensions#access_t...

Re:A Hacker's Replacement for Gmail by mcrittenden on Sunday June 30, 2013 @12:18AM (#5964692)
I believe gmvault.org should be fine for that.
Re:A Hacker's Replacement for Gmail by vu3rdd on Sunday June 30, 2013 @02:11AM (#5964857)
You can use offlineimap to do that. Every label is an imap folder. offlineimap allows what they call as "folder filters", using which one can write a short python function parameterised over the folder name.