$ ./offlineimap.py -o -f INBOX OfflineIMAP 7.1.1 Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception) imaplib2 v2.57 (bundled), Python v2.7.13, OpenSSL 1.0.2k 26 Jan 2017 Account sync office: *** Processing account office Establishing connection to localhost:1143 (exchange) Establishing connection to localhost:2143 (local) Creating folder INBOX[local] Creating new Local Status db for local:INBOX Folder INBOX [acc: office]: Syncing INBOX: IMAP -> MappedIMAP Copy message UID 36 (1/1539) exchange:INBOX -> local Copy message UID 46 (2/1539) exchange:INBOX -> local Copy message from exchange:INBOX: imap ERROR: Copying message 36 [acc: office] Backend could not find uid for message, returned 0 Folder INBOX [acc: office]: Copy message UID 49 (3/1539) exchange:INBOX -> local Thread 'Copy message from exchange:INBOX' terminated with exception: Traceback (most recent call last): File "/cygdrive/c/Users/Administrator/offlineimap/offlineimap/threadutil.py", line 160, in run Thread.run(self) File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/cygdrive/c/Users/Administrator/offlineimap/offlineimap/folder/Base.py", line 844, in copymessageto new_uid = dstfolder.savemessage(uid, message, flags, rtime) File "/cygdrive/c/Users/Administrator/offlineimap/offlineimap/folder/UIDMaps.py", line 271, in savemessage "returned %s"% newluid) ValueError: Backend could not find uid for message, returned 0 Last 15 debug messages logged for Copy message from exchange:INBOX prior to exception: : getmessageheader: headers = 'Received: from [...] REMOVED-EMAIL-REMOVED [...] imap: savemessage: header is: X-OfflineIMAP: 2591050257-5529301435 : addmessageheader: called to add X-OfflineIMAP: 2591050257-5529301435 : addmessageheader: headers end at position 1217 imap: __savemessage_searchforheader called for X-OfflineIMAP: 2591050257-5529301435 imap: __savemessage_searchforheader got initial matchinguids: '' imap: __savemessage_searchforheader: UID SEARCH for message with header X-OfflineIMAP yielded no results imap: savemessage: attempt to get new UID UID failed. Search headers manually. imap: __savemessage_fetchheaders called for X-OfflineIMAP: 2591050257-5529301435 imap: savemessage: returning new UID 0 ERROR: Exceptions occurred during the run! ERROR: Copying message 36 [acc: office] Backend could not find uid for message, returned 0 Traceback: File "/cygdrive/c/Users/Administrator/offlineimap/offlineimap/folder/Base.py", line 844, in copymessageto new_uid = dstfolder.savemessage(uid, message, flags, rtime) File "/cygdrive/c/Users/Administrator/offlineimap/offlineimap/folder/UIDMaps.py", line 271, in savemessage "returned %s"% newluid)