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] -> Maildir[BugsSeen]<br>(The problem starts)<br>Copy message 32773 IMAP[Calendar] -> Maildir[Calendar]<br>Thread 'Copy message 22531 from Calendar' terminated with exception:<br>
Traceback (most recent call last):<br>  File "/usr/lib64/python2.7/site-packages/offlineimap/threadutil.py", line 159, in run<br>    Thread.run(self)<br>  File "/usr/lib64/python2.7/threading.py", line 483, in run<br>
    self.__target(*self.__args, **self.__kwargs)<br>  File "/usr/lib64/python2.7/site-packages/offlineimap/folder/Base.py", line 332, in copymessageto<br>    message = self.getmessage(uid)<br>  File "/usr/lib64/python2.7/site-packages/offlineimap/folder/IMAP.py", line 218, in getmessage<br>
    return initialresult[1][0][1].replace("\r\n", "\n")<br>TypeError: 'NoneType' 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: ('OK', [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 "/usr/lib64/python2.7/site-packages/offlineimap/folder/Base.py", line 332, in copymessageto<br>    message = self.getmessage(uid)<br>  File "/usr/lib64/python2.7/site-packages/offlineimap/folder/IMAP.py", line 218, in getmessage<br>
    return initialresult[1][0][1].replace("\r\n", "\n")<br>TypeError: 'NoneType' object is not subscriptable<br><br><br>Yes, the server is Exchange (2010) but pls, don't stop read here :-)<br>
<br>It looks like that the problem occurs with the messages from the "Calendar" 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 "Contacts" (contains my address book) and "Deleted Items" (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 [<list of "special" folders>]<br><br>but I'm unsure this is the right way to fix this problem.<br><br>Can offlineimap be modified to ignore such "bad" messages? What I especially don't like in my "solution" is inability to synchronize "Deleted items".<br>
<br>If any additional data is needed, I'll be happy to provide...<br><br>Thanks in advance.<br>--<br></pre>WBR & WBW, Vitaly<br>