Python Forum

Full Version: Recommendations for IMAP Push/IDLE library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I am to code a basic IMAP client to receive emails and then parse them out. I would like to take advantage of IMAP's IDLE extension to receive notifications of new messages without polling the mailbox constantly. Basically looking to get as close to a push notification a new message has arrived as I possible can.

The native imaplib doesn't appear to support IDLE and there are various other libraries out there: imaplib2, imap-tools, imapclient, etc., most of which are built on top of imaplib to add functionality.

Does anyone have a recommendation with library to use? I have demo'ed the libraries I mentioned and then all seem to have strengths/weaknesses. Some have great examples of how to avoid IMAP server times outs and others have better debugging capability.

I would appreciate any advice on what path to follow.