imaplib2 eating data :-(

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Jun 6 20:37:48 BST 2011


On Mon, 06 Jun 2011 21:29:45 +0200, Sebastian Spaeth <Sebastian at SSpaeth.de> wrote:
> Here is a bug of recent offlineimap falsly trying to delete around 8k
> emails as it thinks they are gone from the IMAP server.
> https://bugzilla.redhat.com/show_bug.cgi?id=708898

>  Fortunately, we got a full IMAP trace in:
> https://bugzilla.redhat.com/attachment.cgi?id=501695 and I have now
> analyzed it, concluding that IMAPLIB2 is suppressing data in its
> response which is bad...

I don't get it. How can it be that imaplib2 adds responses to the list
of untagged_responses:

untagged_responses[FETCH] 5399 += ["16222 (FLAGS (\Seen) UID 32749)"]

But the subsequent 

_get_untagged_response(FETCH) => ['1 (FLAGS (\\See......

Doesn't contain these very response fragments?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110606/a8d3f671/attachment-0001.sig>


More information about the OfflineIMAP-project mailing list