[PATCHv2 2/3] Re: imaplibutil: Have SELECT throw an OfflineImapError when the connection died

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Sep 6 07:25:49 UTC 2011


On Fri, 2 Sep 2011 21:53:48 +0200, Nicolas Sebrecht <nicolas.s-dev at laposte.net> wrote:
> Are we going to loop forever if anything makes the code we try always raise
> an error for an unkown reason?

This code would throw an FOLDER_RETRY error, and the calling code would
need to take care of erroring out if the error occurs more than once or
twice.

But even if we retried indefinitely, this would not be so bad, as the
IMAP4.abort() exception is documented in imaplib as: 
 
   "abort" exceptions imply the connection should be reset, and
            the command re-tried.

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/20110906/c8fa0541/attachment.pgp>


More information about the OfflineIMAP-project mailing list