KeyError with --dry-run

Dave Abrahams dave at boostpro.com
Mon Jul 2 01:49:25 BST 2012


Is this perhaps normal for a --dry-run, perhaps because the message
doesn't actually get sync'd?

--8<---------------cut here---------------start------------->8---
pluto:~/src/offlineimap dave% offlineimap --dry-run -u basic        
OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
*** Processing account BoostPro
Establishing connection to imap.gmail.com:993
Establishing connection to tunnel:/usr/local/libexec/dovecot/imap
Syncing INBOX: Gmail -> MappedIMAP
[DRYRUN] Copy 5 messages from INBOX[BoostProRemote] to BoostProLocal
[DRYRUN] Deleting 1547 messages (59742:59900,59902:59967,59969:60512,60517:61137,61139:61295) in MappedIMAP[INBOX]
Creating new Local Status db for BoostProLocal:[Gmail].All Mail
Syncing [Gmail]/All Mail: Gmail -> MappedIMAP
[DRYRUN] Copy 218961 messages from [Gmail]/All Mail[BoostProRemote] to BoostProLocal
ERROR: Syncing folder [Gmail]/All Mail [acc: BoostPro]
  2L
ERROR: ERROR in syncfolder for BoostPro folder [Gmail]/All Mail: Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/accounts.py", line 438, in syncfolder
    remotefolder.syncmessagesto(localfolder, statusfolder)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 526, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 456, in syncmessagesto_flags
    statusflags = statusfolder.getmessageflags(uid)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/folder/LocalStatus.py", line 132, in getmessageflags
    return self.messagelist[uid]['flags']
KeyError: 2L

  2L
imap(dave): Info: Disconnected: Logged out in=253 out=9137002
--8<---------------cut here---------------end--------------->8---

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com





More information about the OfflineIMAP-project mailing list