Thread 'Copy message 622 from gmail' terminated with exception: Traceback (most recent call last): File "/Library/Python/2.5/site-packages/offlineimap/threadutil.py", line 153, in run Thread.run(self) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.py", line 440, in run self.__target(*self.__args, **self.__kwargs) File "/Library/Python/2.5/site-packages/offlineimap/folder/Base.py", line 277, in copymessageto message = self.getmessage(uid) File "/Library/Python/2.5/site-packages/offlineimap/folder/IMAP.py", line 164, in getmessage initialresult = imapobj.uid('fetch', '%d' % uid, '(BODY.PEEK[])') File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py", line 752, in uid typ, dat = self._simple_command(name, command, *args) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py", line 1055, in _simple_command return self._command_complete(name, self._command(name, *args)) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py", line 885, in _command_complete typ, data = self._get_tagged_response(tag) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py", line 986, in _get_tagged_response self._get_response() File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py", line 948, in _get_response data = self.read(size) File "/Library/Python/2.5/site-packages/offlineimap/imapserver.py", line 95, in read data = self.sslobj.read(min(size-read,100000)) File "/Library/Python/2.5/site-packages/offlineimap/imaplibutil.py", line 82, in read retval = self._read(n) File "/Library/Python/2.5/site-packages/offlineimap/imaplibutil.py", line 70, in _read return self.sslsock.read(n) sslerror: (8, 'EOF occurred in violation of protocol') Last 5 debug messages logged for Copy message 622 from gmail prior to exception: imap: 37:40.35 > MAJG29 UID FETCH 622 (BODY.PEEK[]) imap: 37:51.27 < * 273 FETCH (UID 622 BODY[] {16817323} imap: 37:51.27 matched r'\* (?P\d+) (?P[A-Z-]+)( (?P.*))?' => ('273', 'FETCH', ' (UID 622 BODY[] {16817323}', '(UID 622 BODY[] {16817323}') imap: 37:51.27 matched r'.*{(?P\d+)}$' => ('16817323',) imap: 37:51.27 read literal size 16817323