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

2010-06-17 Thread R. David Murray
R. David Murray added the comment: OK, this is out of date, then. Nosy people, sorry for the noise. -- resolution: -> out of date stage: unit test needed -> committed/rejected status: open -> closed superseder: -> IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

[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", line 30, in f s

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

2010-06-16 Thread Shashwat Anand
Shashwat Anand added the comment: "import imaplib HOST="imap.gmail.com" PORT=993 USERNAME="usern...@gmail.com" PASSWORD="password" server = imaplib.IMAP4_SSL(host=HOST, port=PORT) server.login(USERNAME, PASSWORD) def f(): print server.select("INBOX") print server.uid("FETCH",

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

2010-06-16 Thread R. David Murray
R. David Murray added the comment: Wait a minute, I misread your message. You don't show the return on ''. So I think perhaps the #5949 patch fixes this. Ruben, can you please test with 2.7RC1? -- ___ Python tracker

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

2010-06-16 Thread R. David Murray
R. David Murray added the comment: The readline return on '' was introduced by the patch for issue 5949, which discusses the fact that SSL may return '' indefinitely in some situations. I've merged the nosy list from that issue to this one; anyone who isn't interested, my apologies and pleas

[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 ___ _

[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()