Handling IDLE connection with Python, without thread or strange things.
It's a monkey patch, all other code came from python imaplib.
Early POC.
from imapidle import imaplib
m = imaplib.IMAP4_SSL('imap.gmail.com')
m.login('robert', 'pa55w0rd')
m.select()
for uid, msg in m.idle():
print msg
MIT © Mathieu Lecarme 2012