On Fri, Dec 7, 2012 at 2:57 PM, Rainer M Krug <r.m.krug@gmail.com> wrote:
>
>
> 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?

Sorry - should have been "patched offlineimap" ( https://github.com/aroig/offlineimap
http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943/focusY70 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/focusY70 for details)

I see.

I use the All Mail folder and get the tags using the X-GM-LABELS imap extension. I don't muck with the mail headers in the process, fortunately.