If anyone needs the IMAP4 extension "IDLE", there is a copy of an enhanced imaplib module available for download here:
http://www.cs.usyd.edu.au/~piers/python/imaplib.html This is an IMAP4rev1 mail protocol client class using threads for parallel operation. It is modified from the non-threaded version included in the standard Python distributions, but presents (a superset of) the same API. I have named this version "imaplib2" as it uses threads to implememt the necessary callbacks, and it doesn't seem necessary to burden the orginal module with requiring threading. The module has been in production use for several months, and seems stable. Piers Lauder <P><A HREF="http://www.cs.usyd.edu.au/~piers/python/imaplib.html">imaplib2</A> IMAP4rev1 mail protocol client class using threads to implement the IDLE extension. (09-Dec-2005) -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html