More stack traces

Sebastian Spaeth Sebastian at SSpaeth.de
Thu Sep 8 08:34:03 UTC 2011


On Wed, 07 Sep 2011 13:20:13 -0500, John Wiegley <jwiegley at gmail.com> 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/UIDMaps.py", 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.

In
.offlineimap/Account-WHATEVER/LocalStatus/Lists.WG21.Reflector

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:

.offlineimap/Account-WHATEVER/LocalStatus-sqlite/Lists.WG21.Reflector

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. :-(

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20110908/f1ba9045/attachment.pgp>


More information about the OfflineIMAP-project mailing list