3 ms·
Does anyone have a gmail exporter? i.e. something that imports email from gmail WITH labels.
by daurnimator 13y ago
Does anyone have a gmail exporter?
i.e. something that imports email from gmail WITH labels.
- mcrittenden 13y agoI believe gmvault.org should be fine for that.
- mjn 13y agoThis is a proof-of-concept someone wrote, but I have no idea how tested it is: http://git.zx2c4.com/gmail-notmuch/ 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_to_gmail_labels_x-gm-labels https://developers.google.com/gmail/imap_extensions#access_t...
- vu3rdd 13y agoYou 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.