ERROR: 'NoneType' object has no attribute '__getitem__'

Eric Schulte eric.schulte at
Mon Jun 11 18:20:17 BST 2012


I'm receiving the following error [1] on every sync with one of my
mailboxes.  Incidentally I also have one message in that mailbox which
is duplicated on every sync (which becomes problematic with regular
crontab syncs).  I copied the duplicating message over from a mailbox on
another remote IMAP server.

Any idea what the cause of this error could be?  I'm running version
6.5.4 of offlineimap installed using pacman on Arch Linux.


[1]  ERROR: 'NoneType' object has no attribute '__getitem__'
     Thread 'Copy message from' terminated with exception:
     Traceback (most recent call last):
     File "/usr/lib/python2.7/site-packages/offlineimap/", line 156, in run
     File "/usr/lib/python2.7/", line 504, in run
     self.__target(*self.__args, **self.__kwargs)
     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 592, in savemessage
     uid = long(resp[-1].split(' ')[1])
     TypeError: 'NoneType' object has no attribute '__getitem__'

Eric Schulte

More information about the OfflineIMAP-project mailing list