<p>Got it again. Here are the debug logs for the "thread" type.</p>
<pre lang="log"><code> 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@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)
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OfflineIMAP/offlineimap/issues/198#issuecomment-150847548">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEIQXB50RoRqCMuZa5nTm1l0Svkrwks5o-9-HgaJpZM4EaYUs.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OfflineIMAP/offlineimap/issues/198#issuecomment-150847548"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>