[Imaplib2-devel] Gmail: downloading the rest of the mails

Sebastian Spaeth sebastian at sspaeth.de
Mon Oct 10 11:16:37 UTC 2011


On Sat, 08 Oct 2011 09:50:16 +1100, Piers Lauder <piers at janeelix.com> wrote:
>   > > > DEBUG[imap]:   31:24.19 imap.gmail.com reader socket error: <type
>   > > > 'exceptions.IOError'> - Too many read 0
>   > > > DEBUG[imap]:   31:24.19 imap.gmail.com reader finished
>   > > > DEBUG[imap]:   31:24.19 imap.gmail.com handler terminating: "socket
>   > > > error: <type 'exceptions.IOError'> - Too many read 0"

>   > It has unfortunately been reported a lot since months. And it *only*
>   > ever occurs with Gmail servers. I am not using Gmail, and I have never
>   > managed to debug this. Help with this is much appreciated. It is
>   > something down in the bowels of imaplib2.

> In this case, where one gets an actual IOerror, it probably means that the
> socket has become disconnected, as a read call returning 0 bytes usually
> means EOF. No idea why the EOF is occuring, but the recommended imaplib2
> solution would be to drop the current IMAP4 instance, initiate another,
> and then carry on.

OK, thanks for that recommendation. We'll try to do that then. I would
be very surprised if Gmail dropped the connection every 100 messages,
but then we have seen weirder things.


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/20111010/b6ef6681/attachment.pgp>


More information about the OfflineIMAP-project mailing list