Gmail: downloading the rest of the mails

Sebastian Spaeth Sebastian at
Fri Oct 7 16:38:33 BST 2011

On Mon, 03 Oct 2011 10:59:31 -0400, Dave Abrahams <dave at> wrote:
> > After every 100 messages, OfflineIMAP gets stuck with:
> >
> > DEBUG[imap]:   31:24.19 reader socket error: <type
> > 'exceptions.IOError'> - Too many read 0
> > DEBUG[imap]:   31:24.19 reader finished
> > DEBUG[imap]:   31:24.19 handler terminating: "socket
> > error: <type 'exceptions.IOError'> - Too many read 0"
> I've seen a lot of those "too many read" messages from my Gmail account
> with offlineimap in the past few weeks.

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.

Piers, the maintainer of imaplib2 has indicated it might be something
with locking. But it might also be some mysterious connection closing on
the gmail side.

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