Hello,<br><br>I use offlineimap version 6.3.3. Previously I have used 6.3.2 (with the same server/account) and everything worked fine.<br><br>Now (with 6.3.3) I have decided to re-sync everything and started to receive the following stdout from offlineimap:<br>
<br>(a lot of successfully copied messages)<br>Copy message 28909 IMAP[BugsSeen] -&gt; Maildir[BugsSeen]<br>(The problem starts)<br>Copy message 32773 IMAP[Calendar] -&gt; Maildir[Calendar]<br>Thread &#39;Copy message 22531 from Calendar&#39; terminated with exception:<br>
Traceback (most recent call last):<br>  File &quot;/usr/lib64/python2.7/site-packages/offlineimap/threadutil.py&quot;, line 159, in run<br>    Thread.run(self)<br>  File &quot;/usr/lib64/python2.7/threading.py&quot;, line 483, in run<br>
    self.__target(*self.__args, **self.__kwargs)<br>  File &quot;/usr/lib64/python2.7/site-packages/offlineimap/folder/Base.py&quot;, line 332, in copymessageto<br>    message = self.getmessage(uid)<br>  File &quot;/usr/lib64/python2.7/site-packages/offlineimap/folder/IMAP.py&quot;, line 218, in getmessage<br>
    return initialresult[1][0][1].replace(&quot;\r\n&quot;, &quot;\n&quot;)<br>TypeError: &#39;NoneType&#39; object is not subscriptable<br><br>Last 1 debug messages logged for Copy message 22531 from Calendar prior to exception:<br>
imap: Returned object from fetching 22531: (&#39;OK&#39;, [None])<br><br>stderr shows:<br><br>WARNING:root:Using old interface name, consider using one of machineui, blinkenlights, quiet, ttyui, basic<br>WARNING: ERROR attempting to copy message 22531 for account Acc:Traceback (most recent call last):<br>
  File &quot;/usr/lib64/python2.7/site-packages/offlineimap/folder/Base.py&quot;, line 332, in copymessageto<br>    message = self.getmessage(uid)<br>  File &quot;/usr/lib64/python2.7/site-packages/offlineimap/folder/IMAP.py&quot;, line 218, in getmessage<br>
    return initialresult[1][0][1].replace(&quot;\r\n&quot;, &quot;\n&quot;)<br>TypeError: &#39;NoneType&#39; object is not subscriptable<br><br><br>Yes, the server is Exchange (2010) but pls, don&#39;t stop read here :-)<br>
<br>It looks like that the problem occurs with the messages from the &quot;Calendar&quot; folder. Which typically contains the calendar events, not mail messages.<br>It might be that Exchange transforms these  messages to some special mails which are not recognized well by offlineimap. The same happens with the<br>
messages from the folder &quot;Contacts&quot; (contains my address book) and &quot;Deleted Items&quot; (as it contains the mix of all the deleted entities - calendar events,<br>contacts, regular mails).<br><br>I have workarounded the issue by using <br>
<pre>folderfilter = lambda foldername: foldername not in [&lt;list of &quot;special&quot; folders&gt;]<br><br>but I&#39;m unsure this is the right way to fix this problem.<br><br>Can offlineimap be modified to ignore such &quot;bad&quot; messages? What I especially don&#39;t like in my &quot;solution&quot; is inability to synchronize &quot;Deleted items&quot;.<br>
<br>If any additional data is needed, I&#39;ll be happy to provide...<br><br>Thanks in advance.<br>--<br></pre>WBR &amp; WBW, Vitaly<br>