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

Mattias Holmlund notifications at github.com
Wed Jul 15 12:23:13 BST 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
  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
    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 [] (helo=vm1.holmlund.se)\r\n\tby sol

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

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 [])
        by mail.holmlund.se (Postfi...==

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20150715/bf2f20d0/attachment-0003.html>

More information about the OfflineIMAP-project mailing list