Message107933
"import imaplib
HOST="imap.gmail.com"
PORT=993
USERNAME="username@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", "1:*", "(UID FLAGS BODY.PEEK[HEADER.FIELDS (Subject)])")
Call the f() function and then wait about about an hour. Call f() again and server.select() will not return but take all CPU."
Tried to reproduce this on Python 2.7RC1. Seemed Ok to me. Took some 3 seconds to call f() not only once, but twice, thrice. |
|
Date |
User |
Action |
Args |
2010-06-16 16:12:45 | l0nwlf | set | recipients:
+ l0nwlf, rhettinger, ncoghlan, janssen, scott.dial, kevinwatters, benjamin.peterson, r.david.murray, rmore, rtucker, Ruben.Bakker |
2010-06-16 16:12:45 | l0nwlf | set | messageid: <1276704765.38.0.582722428279.issue9010@psf.upfronthosting.co.za> |
2010-06-16 16:12:44 | l0nwlf | link | issue9010 messages |
2010-06-16 16:12:43 | l0nwlf | create | |
|