Does anyone have a gmail exporter?
i.e. something that imports email from gmail WITH labels.
i.e. something that imports email from gmail WITH labels.
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...