offlineimap didn't change gmail message flag

Sebastian Spaeth Sebastian at
Thu Jul 7 12:04:37 BST 2011

On Wed, 6 Jul 2011 15:30:31 +0000 (UTC), Marcelo Luiz de Laia <marcelolaia at> wrote:
> Dear Sebastian and everyone!
> Please, have you found any mistake in my config file or in my (so) big log?

Folder sync [GMail]: Deleting 30 messages (78841, 78855, 78881, 78883,
78889, 78896, 78905, 78906, 78907, 78908, 78909, 78910, 78913, 78915,
78917, 78918, 78919, 78923, 78924, 78926, 78927, 78928, 78930, 78931,
78933, 78935, 78936, 78937, 78938, 78925) in Gmail[INBOX] MainThread:
Thread 'New msg sync from Inbox' terminated with exception: Traceback
(most recent call last): File
"/usr/lib/pymodules/python2.6/offlineimap/", line 159, in
run File "/usr/lib/python2.6/", line 484,
in run self.__target(*self.__args, **self.__kwargs) File
"/usr/lib/pymodules/python2.6/offlineimap/folder/", line 248, in
syncmessagesto_neguid_msg successuid = dstfolder.savemessage(uid,
message, flags, rtime) File
"/usr/lib/pymodules/python2.6/offlineimap/folder/", line 436, in
savemessage assert(typ == 'OK') AssertionError

Yep, you have gmail chatlogs as mails and uploading these fails with
gmail apparently. We had a couple bug reports with regard to that and
also a debian bug report. It's not an OfflineImap error because the
Debian bug report says, that both mutt and Thunderbird also fail
attempting to upload that. (Uploading means in this case moving tho the
Trash folder, I guess).

This will currently abort the folder syncing, I think.

I have a round of patches ready that I submit after we release the next
stable (hopefully soon), to at least only skip the failed message and
continue with the next message.

I consider it a Gmail bug that uploading a gmail chat fail, but we
should (and will) fail more gracefully than aborting the folder sync.

Manually deleteing the gmail chat log emails via the web interface could
solve this for now.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <>

More information about the OfflineIMAP-project mailing list