Another stack trace

John Wiegley jwiegley at gmail.com
Wed Nov 30 22:34:55 GMT 2011


Never seen this one before:

--8<---------------cut here---------------start------------->8---
Copy message -1 (1 of 1) LocalIMAP:INBOX -> RemoteIMAP
Thread 'Copy message from RemoteIMAP:INBOX' terminated with exception:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/threadutil.py", line 137, in run
    Thread.run(self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 289, in copymessageto
    statusfolder.savemessage(uid, message, flags, rtime)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/folder/LocalStatusSQLite.py", line 226, in savemessage
    (uid,flags))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/folder/LocalStatusSQLite.py", line 90, in sql_write
    cursor = self.connection.execute(sql, vars)
IntegrityError: PRIMARY KEY must be unique


Last 5 debug messages logged for Copy message from RemoteIMAP:INBOX prior to exception:
thread: Register new thread 'Copy message from RemoteIMAP:INBOX' (account 'Gmail')
imap: Returned object from fetching 57163: 'Delivered-To: jwiegley at gmail.com
Received: by 10.150.178.16 with SMTP id a16cs13512ybf;
        Wed, 30 Nov 2011 13:08:49 -0800 (PST)
Received: by 10....D596811B4EBAEFCA2CF7BFA31807CC6FDFLE35entticom_--
'
imap: savemessage: called
imap: savemessage: date: "30-Nov-2011 21:08:38 -0600", content: 'Delivered-To: jwiegley at gmail.com
Received: by 10.150.178.16 with SMTP id a16cs13512ybf;
        Wed, 30 Nov 2011 13:08:49 -0800 (PST)
Received: by ...596811B4EBAEFCA2CF7BFA31807CC6FDFLE35entticom_--
'
imap: savemessage: returning new UID 3239

ERROR: Exceptions occurred during the run!
ERROR: PRIMARY KEY must be unique
imap(johnw): Info: Connection closed bytes=23413/44637
--8<---------------cut here---------------end--------------->8---

Note that I haven't updated my offlineimap sources in a while, either, since
everything has been working pretty well until this.

Did I lose any data, do you think?

John





More information about the OfflineIMAP-project mailing list