imaplib2 adds [IDLE](http://en.wikipedia.org/wiki/IMAP_IDLE) functionality, and is built on and includes all the functionality of imaplib. The module is hosted by the author here: http://www.janeelix.com/piers/python/ It could be included as an optional dependency and imported with a try except?