[issue9010] Infinite loop in imaplib.IMAP4_SSL when used with Gmail

2010-06-17 Thread Ruben Bakker
Ruben Bakker added the comment: I installed Python 2.7RC1 on Mac OS X 10.6.3 and tried my script and it worked for me. Imaplib throws the right exception instead of looping forever: Traceback (most recent call last): File "", line 1, in File "imapmail/explore/test2.py&

[issue9010] Infinite loop in imaplib.IMAP4_SSL when used with Gmail

2010-06-16 Thread Ruben Bakker
Ruben Bakker added the comment: I forgot to mention that the section after "Add this line to IMAP4_SSL" describes the solution. Sorry about that. -- ___ Python tracker <http://bugs.python.

[issue9010] Infinite loop in imaplib.IMAP4_SSL when used with Gmail

2010-06-16 Thread Ruben Bakker
New submission from Ruben Bakker : When using imaplib.IMAP4_SSL to open a Gmail mailbox, the readline method can go into a infinite loop. It happens after Gmail drops the connection, usually after some time/inactivity. The next imaplib request will cause the infinite loop inside the readline