import Twisted example IMAP client
imap4client.py - basic repl for reading recent email, intentionally limited in features. this is the first step of moving my email password off my phone.