[offlineimap] downloading junk messages raise socket error with "copy message list.remove(x): x not in list" (#198)

Stéphane Campinas notifications at github.com
Sat Oct 24 21:20:23 BST 2015


Got it again. Here are the debug logs for the "thread" type.

```log
 ERROR: command: UID => socket error: <class 'ssl.SSLError'> - [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1752)
 ['  File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 685, in _fetch_from_imap\n    res_type, data = imapobj.uid(\'fetch\', uids, query)\n', '  File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1176, in uid\n    return self._simple_command(\'UID\', command, *args, **kw)\n', '  File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1633, in _simple_command\n    return self._command_complete(self._command(name, *args), kw)\n', '  File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1393, in _command_complete\n    typ, dat = rqb.get_response(\'command: %s => %%s\' % rqb.name)\n', '  File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 188, in get_response\n    raise typ(exc_fmt % str(val))\n']
 ERROR: Copying message 662 [acc: gmail]
  list.remove(x): x not in list
 ['  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 770, in copymessageto\n    message = self.getmessage(uid)\n', '  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Gmail.py", line 79, in getmessage\n    self.imapserver.releaseconnection(imapobj)\n', '  File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 162, in releaseconnection\n    self.assignedconnections.remove(connection)\n']
Thread 'Copy message from Remote:[Gmail]/Sent Mail' terminated with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/offlineimap/threadutil.py", line 163, in run
    Thread.run(self)
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Gmail.py", line 291, in copymessageto
    super(GmailFolder, self).copymessageto(uid, dstfolder, statusfolder, register)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 770, in copymessageto
    message = self.getmessage(uid)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Gmail.py", line 79, in getmessage
    self.imapserver.releaseconnection(imapobj)
  File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 162, in releaseconnection
    self.assignedconnections.remove(connection)
ValueError: list.remove(x): x not in list


Last 3 debug messages logged for Copy message from Remote:[Gmail]/Sent Mail prior to exception:
thread: Register new thread 'Copy message from Remote:[Gmail]/Sent Mail' (account 'gmail')
imap: Attempting PLAIN authentication
imap: __plainhandler: returning stephane.campinas at gmail.compwqowrjgfiooiyan
ERROR: Exceptions occurred during the run!
ERROR: command: UID => socket error: <class 'ssl.SSLError'> - [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1752)

Traceback:
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 685, in _fetch_from_imap
    res_type, data = imapobj.uid('fetch', uids, query)
  File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1176, in uid
    return self._simple_command('UID', command, *args, **kw)
  File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1633, in _simple_command
    return self._command_complete(self._command(name, *args), kw)
  File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1393, in _command_complete
    typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
  File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 188, in get_response
    raise typ(exc_fmt % str(val))

ERROR: Copying message 662 [acc: gmail]
  list.remove(x): x not in list

Traceback:
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 770, in copymessageto
    message = self.getmessage(uid)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Gmail.py", line 79, in getmessage
    self.imapserver.releaseconnection(imapobj)
  File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 162, in releaseconnection
    self.assignedconnections.remove(connection)
```

---
Reply to this email directly or view it on GitHub:
https://github.com/OfflineIMAP/offlineimap/issues/198#issuecomment-150847548
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20151024/d92ce9c4/attachment-0003.html>


More information about the OfflineIMAP-project mailing list