More stack traces

Sebastian Spaeth Sebastian at
Thu Sep 8 09:34:03 BST 2011

On Wed, 07 Sep 2011 13:20:13 -0500, John Wiegley <jwiegley at> wrote:

>     self._mb.deletemessages(self._uidlist(self.r2l, uidlist))
>   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/folder/", line 87, in _uidlist
>     return [mapping[x] for x in items]
> KeyError: 94L

Hi John, such a KeyError points to an inconsistency in the UIDMapping
file. YOu have a mail with UID 94 somewhere that it attempts to delete,
and it fails to look up the local UID in the UIDMapping file.


You should find the UID 94 and simply delete the line, it will lead a
one duplicated message at worst. If you are using the sqlite backend,
the sqlite3 database is in:


Sorry for that, the UIDmapping part certainly needs more love in the
future. ALthough the code seems to have been written in a way that it is
quite error proof, aborting OfflineImap still seem to be able to corrupt
the mapping. :-(

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <>

More information about the OfflineIMAP-project mailing list