>Sorry - should have been "patched offlineimap" ( https://github.com/aroig/offlineimap
>
> 2) I am downloading with the patched notmuch (to add x-keywords containing the labels) only
> the "All Mail" folder - does your script use this information (if present) to tag the emails?
>
>
> What is the patched notmuch? What does that do?
http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943/focus=5970 and
http://article.gmane.org/gmane.mail.imap.offlineimap.general/5970 )
It is synching the gmail labels into the x-keywords header as a comma separated list. These could
then be used by notmuch to be added to the labels. It also does sync changes from the X-Keywords
to gmail (see http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943/focus=5970 for details)