<DKIM> Gmail Label Sync - Label Header Duplication Issue

Ethan Schoonover es at ethanschoonover.com
Wed Nov 19 22:45:57 GMT 2014

Thanks Nicolas. I'm just starting a full Python self-study course now
otherwise I'd have jumped in on it myself. Maybe in a while :)

On Wed, Nov 19, 2014 at 2:44 PM, Nicolas Sebrecht
<nicolas.s-dev at laposte.net> wrote:
> On Wed, Nov 19, 2014 at 11:55:36AM -0800, Ethan Schoonover wrote:
>> Offlineimap may create multiple headers recording the gmail labels
>> when a message is refiled remotely on the gmail server. The last of
>> these is always the correct header, but upon any subsequent scan of
>> the message due to mtime change, offlineimap will read in only the
>> first header, resulting in an incorrect relabeling of the message.
>> Thus the issue is that, in a multiple-label-header condition,
>> offlineimap writes to a new header at the end of the header sequence,
>> but subsequently reads from the first label-header available.
>> Offlineimap should either NOT create multiple label headers or should
>> consistently read write to the same (either first or last) label
>> header.
>> The state of the headers (X-Keywords in this case) is shown in each step below:
> Very nice analysis Ethan. I hope someone will fix this!
> --
> Nicolas Sebrecht

More information about the OfflineIMAP-project mailing list