Gmail to "gmail apps" sync: ValueError: Backend could not find uid for message

Sebastian Spaeth Sebastian at
Mon Jun 27 13:43:56 BST 2011

On Mon, 27 Jun 2011 02:22:17 -0700 (PDT), chris coleman wrote:
> @Sebastian: What's your thoughts on fixing imaplib2 or offlineimap, so
> they respond properly when an untagged CAPABILITIES response arrives
> at any time.

Piers, the imaplib2 maintainer (although Nicolas is basically taking
over ;-)) has indicated that we should be doing that from offlineimap, and
I'll send a patch to that regard. OfflineImap already makes use of the
APPENDUID reply from Gmail, so there will no change in behavior.

> Just in case, one day a user gets an IMAP server that changes the capabilities. Imagine a cluster scenario, the 1st IMAP server goes down, the load balancer switches over to the 2nd IMAP server, which announces different capabilities.

Well, the suggested fix (requery capabilities after login) won't help
that scenario as your imagined switchover could happen at any point in
time and not just pre/post login.

-------------- 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