[offlineimap] 'NoneType' object has no attribute 'format_exc' (#215)

Mattias Holmlund notifications at github.com
Wed Jul 15 11:23:13 UTC 2015


I ran offlineimap again without changing anything and now I get this backtrace instead:

Folder  [remote name INBOX] [acc: helena]:
 Copy message -6875 (1 of 7698) helenalocal: -> helenaremote
 Copy message -7698 (2 of 7698) helenalocal: -> helenaremote
Thread 'Folder  [remote name INBOX] [acc: helena]' terminated with exception:
Traceback (most recent call last):
  File "/home/mattias/offlineimap-6.5.7/offlineimap/threadutil.py", line 163, in
 run
    Thread.run(self)
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/mattias/offlineimap-6.5.7/offlineimap/accounts.py", line 575, in s
yncfolder
    localfolder.syncmessagesto(remotefolder, statusfolder)
  File "/home/mattias/offlineimap-6.5.7/offlineimap/folder/Base.py", line 979, i
n syncmessagesto
    action(dstfolder, statusfolder)
  File "/home/mattias/offlineimap-6.5.7/offlineimap/folder/Base.py", line 853, i
n __syncmessagesto_copy
    register = 0)
  File "/home/mattias/offlineimap-6.5.7/offlineimap/folder/Base.py", line 775, i
n copymessageto
    new_uid = dstfolder.savemessage(uid, message, flags, rtime)
  File "/home/mattias/offlineimap-6.5.7/offlineimap/folder/IMAP.py", line 597, i
n savemessage
    raise OfflineImapError(msg, OfflineImapError.ERROR.REPO)
OfflineImapError: Saving msg (<3E57408F4CC.biljetter at dramaten.se>) in folder 'IN
BOX', repository 'helenaremote' failed (abort). Server responded: NO ['Message contains NUL characters']



Last 15 debug messages logged for Folder  [remote name INBOX] [acc: helena] prior to exception:
imap: __options2hash returning: {'INTERNALDATE': '"14-Jul-2015 11:29:33 +0200"', 'FLAGS': '()', 'UID': '7012'}
imap: __options2hash returning: {'INTERNALDATE': '"14-Jul-2015 12:34:27 +0200"', 'FLAGS': '()', 'UID': '7013'}
imap: Write mail 'INBOX:-6875' with flags set([])
: deletemessageheaders: called to delete []
: getmessageheader: called to get message-id
: getmessageheader: eoh = 23407
: getmessageheader: headers = 'Return-path: <mm30_Bw3_nk_802_31208 at mail.nkinfo.se>\r\nEnvelope-to: helena at ssol.holmlund.se\r\nDelivery-date: Thu, 10 Dec 2009 14:57:30 +0100\r\nReceived: from [192.168.16.1] (helo=vm1.holmlund.se)\r\n\tby sol

... single line with email with a large attachment removed by mattias

E2IDAgUg0KPj4NCnN0YXJ0eHJlZg0KMTAyMzU1DQolJUVPRg==\r\n\x00\x97\r\n--4aeae813-48f8-4b65-a11a-845204325aca--\r\n'
imap: savemessage: date: "23-Dec-2014 23:51:10 +0100", content: 'Return-Path: <biljetter at dramaten.se>
Delivered-To: **redacted-by-mattias**@holmlund.se
Received: from localhost (localhost [127.0.0.1])
        by mail.holmlund.se (Postfi...==
^@<97>
--4aeae813-48f8-4b65-a11a-845204325aca--
'

---
Reply to this email directly or view it on GitHub:
https://github.com/OfflineIMAP/offlineimap/issues/215#issuecomment-121585894
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20150715/bf2f20d0/attachment.html>


More information about the OfflineIMAP-project mailing list