<p>I ran offlineimap again without changing anything and now I get this backtrace instead:</p>

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

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

<p>... single line with email with a large attachment removed by mattias</p>

<p>E2IDAgUg0KPj4NCnN0YXJ0eHJlZg0KMTAyMzU1DQolJUVPRg==\r\n\x00\x97\r\n--4aeae813-48f8-4b65-a11a-845204325aca--\r\n'<br>
imap: savemessage: date: "23-Dec-2014 23:51:10 +0100", content: 'Return-Path: <a href="mailto:biljetter@dramaten.se">biljetter@dramaten.se</a><br>
Delivered-To: <strong>redacted-by-mattias</strong><a href="https://github.com/holmlund" class="user-mention">@holmlund</a>.se<br>
Received: from localhost (localhost [127.0.0.1])<br>
        by mail.holmlund.se (Postfi...==<br>
^@<97><br>
--4aeae813-48f8-4b65-a11a-845204325aca--<br>
'</p>

<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/215#issuecomment-121585894">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSELT1YOnDFduzhhv8Z4g8cT1ssa1xks5odjohgaJpZM4FY5LK.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/215#issuecomment-121585894"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>