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

Tomasz Żok tomasz.zok at gmail.com
Mon Apr 30 11:47:23 BST 2012


Hi,

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/accounts.py",
line 446, in syncfolder
    localfolder.syncmessagesto(remotefolder, statusfolder)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py",
line 526, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py",
line 409, in syncmessagesto_copy
    register = 0)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py",
line 335, in copymessageto
    new_uid = dstfolder.savemessage(uid, message, flags, rtime)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py",
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 6.5.3.1 and git master branch - the bug is present.

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




More information about the OfflineIMAP-project mailing list