gmail label support patch available for oflineimap
David Bremner
david at tethera.net
Mon Nov 26 06:44:23 PST 2012
Rainer M Krug <R.M.Krug at gmail.com> writes:
> there is a patch available for synching gmail labels to X-Keywords in
> the message (full thread see
> http://article.gmane.org/gmane.mail.imap.offlineimap.general/5943 ).
>
> Would notmuch be able to translate these X-Keywords into tags, so that
> one could use notmuch and it's tags as gmail uses the labels?
Reading tags from X-Keywords would be a Simple Matter of Programming
(TM), although you'd have to be sure you could trust that header as
injected by you and not some evil adversary. There would also be some
questions about forwarding such messages (e.g. should the X-Labels be
stripped when forwarding).
I expect there would be some resistance to writing X-Labels back to
message files, since having read-only message files is more or less a
design goal.
In summary, it could probably be done, but I'm not sure it would be a
better approach than interfacing directly with gmail via their extended
IMAP interface. Personally, if I was interested in solving this
problem, I'd be more interested in a solution that didn't wed me to
offline imap, if the two solutions were in the same rough ballpark of
effort. The direct method would also not modify mail messages. Still,
others might feel differently.
The notion of storing labels in messages has been mooted before as a
general synching solution. That might make it more interesting to me.
d
More information about the notmuch
mailing list