[PATCH] Syncing gmail labels for gmail accounts

Dima Pasechnik dimpase+olimap at gmail.com
Thu Nov 29 09:59:34 UTC 2012


Hi,
it seems one needs a way to translate gmail tags containing spaces
into X-Labels without spaces (and back). Indeed, there are gmail tags
which contain spaces by default, e.g. "Sent Mail".
(yes, this gets messy...)
Dmitrii

On 29 November 2012 01:58, Abdó Roig-Maranges <abdo.roig at gmail.com> wrote:
>
> Hi Dimitrii,
>
>> Another question about this patch: how easy it to change it to use
>> X-Label rather than X-Keywords?
>> (There are minor differences in format between them).
>
> I attach a patch that handles X-Label and Keywords as a space separated
> list, following what is discussed in this thread
>
> https://groups.google.com/d/topic/mu-discuss/W4ys4ZGkP1E/discussion
>
> and what mu does. I went the easy route and assumes labels have no
> spaces. This is documented on the sample offlineimap.conf.
>
> Could you confirm that mutt will be happy with that? Right now this
> patch assumes there is only one header for labels (either X-Label, or
> X-Keywords or whatever). Is that ok or is it possible that a message
> might have the labels spread in multiple X-Label headers?
>
> You can get the code from github at
> https://github.com/aroig/offlineimap
>
> Abdó.
>



More information about the OfflineIMAP-project mailing list