ERROR: 'NoneType' object has no attribute '__getitem__'
eric.schulte at gmx.com
Sat Jun 30 00:29:32 BST 2012
Tomasz Żok <tomasz.zok at gmail.com> writes:
> Hi Eric,
> I am attaching the patch to this bug which I mentioned in the private email to
> you. I created it for 220.127.116.11, so maybe you should find and fix the faulty line
> yourself in IMAP.py as the diff below says:
> In file: /usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py
> < if resp == [None]:
>> if not resp or resp == [None]:
It was a while before I ran into another email which exhibited this bad
behavior, but I can confirm that the above fix does indeed resolve the
problem on my system.
> On 06/11/12 at 11:20am, Eric Schulte wrote:
>> I'm receiving the following error  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.
>>  ERROR: 'NoneType' object has no attribute '__getitem__'
>> Thread 'Copy message from school-local:unm.school' terminated with exception:
>> Traceback (most recent call last):
>> File "/usr/lib/python2.7/site-packages/offlineimap/threadutil.py", line 156, in run
>> File "/usr/lib/python2.7/threading.py", line 504, in run
>> self.__target(*self.__args, **self.__kwargs)
>> "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line
>> 335, in copymessageto
>> new_uid = dstfolder.savemessage(uid, message, flags, rtime)
>> "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line
>> 592, in savemessage
>> uid = long(resp[-1].split(' '))
>> TypeError: 'NoneType' object has no attribute '__getitem__'
>> Eric Schulte
>> OfflineIMAP-project mailing list
>> OfflineIMAP-project at lists.alioth.debian.org
>> OfflineIMAP homepage: http://software.complete.org/offlineimap
> OfflineIMAP-project mailing list
> OfflineIMAP-project at lists.alioth.debian.org
> OfflineIMAP homepage: http://software.complete.org/offlineimap
More information about the OfflineIMAP-project