[BUG]: offlineIMAP aborts when downloading >1MB email
Ricardo Wurmus
ricardo.wurmus at gmail.com
Tue Oct 18 13:15:58 BST 2011
Hi list,
I have repeatedly encountered this problem whenever offlineIMAP
retrieves an email with large attachments. Whenever somebody sends me
a large email offlineIMAP terminates with the error below:
----8<-----------------------------------------------------------------------
% offlineimap
OfflineIMAP 6.4.0
Copyright 2002-2011 John Goerzen & contributors.
Licensed under the GNU GPL v2+ (v2 or any later version).
*** Processing account GMail
Establishing connection to imap.gmail.com:993
Syncing INBOX: Gmail -> Maildir
Copy message 16883 (1 of 1) Remote:INBOX -> Local
Establishing connection to imap.gmail.com:993
ERROR: command: UID => socket error: <type 'exceptions.IOError'> - Too
many read 0
Establishing connection to imap.gmail.com:993
ERROR: command: UID => socket error: <type 'exceptions.IOError'> - Too
many read 0
ERROR: command: UID => socket error: <type 'exceptions.IOError'> - Too
many read 0
Deleting 1 messages (16892) in Maildir[INBOX]
Deleting 17 messages
(13275,16831:16833,16835,16838:16840,16842,16845:16847,16849:16850,16852,16856,16877)
in Gmail[INBOX]
Thread 'Copy message from Remote:INBOX' terminated with exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/offlineimap/threadutil.py",
line 137, in run
Thread.run(self)
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py",
line 272, in copymessageto
message = self.getmessage(uid)
File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py",
line 219, in getmessage
raise e
abort: command: UID => socket error: <type 'exceptions.IOError'> - Too
many read 0
Last 3 debug messages logged for Copy message from Remote:INBOX prior
to exception:
thread: Register new thread 'Copy message from Remote:INBOX' (account 'GMail')
imap: Attempting plain authentication
imap: Attempting plain authentication
ERROR: Exceptions occurred during the run!
ERROR: command: UID => socket error: <type 'exceptions.IOError'> - Too
many read 0
ERROR: command: UID => socket error: <type 'exceptions.IOError'> - Too
many read 0
ERROR: command: UID => socket error: <type 'exceptions.IOError'> - Too
many read 0
----8<-----------------------------------------------------------------------
Is this a known limitation or can this be fixed with some config file tweaking?
Rekado
More information about the OfflineIMAP-project
mailing list