Error during sync, "TypeError: 'NoneType' object has no attribute '__getitem__'", message doubled in maildir

Tomasz ┼╗ok tomasz.zok at
Mon Apr 30 11:47:23 BST 2012


I am getting the following error during sync:

ERROR: ERROR in syncfolder for (...) folder mail/sent-mail: Traceback
(most recent call last):
  File "/usr/lib/python2.7/site-packages/offlineimap/",
line 446, in syncfolder
    localfolder.syncmessagesto(remotefolder, statusfolder)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/",
line 526, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/",
line 409, in syncmessagesto_copy
    register = 0)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/",
line 335, in copymessageto
    new_uid = dstfolder.savemessage(uid, message, flags, rtime)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/",
line 589, in savemessage
    uid = long(resp[-1].split(' ')[1])
TypeError: 'NoneType' object has no attribute '__getitem__'

I have sent some mail and upon every status update I get the above and
my message gets doubled in my local "sent-mail" directory. I checked
both with and git master branch - the bug is present.

If you need some more information about it please let me know.
Tomasz Zok

More information about the OfflineIMAP-project mailing list