Examples

Fetch mails from a gmail account

user = "address no domain"
pwd = "password"
server = "imap.gmail.com"

box = MailBoxImap(user, pwd, server, ssl=True)
box.login()

# ... fetch emails

box.logout()

see file mailboximap.py

Search pattern

pattern='FROM "xavier" SINCE 1-Feb-2013'
pattern='FROM "xavier" SINCE 1-Feb-2013 BEFORE 5-May-2013'
pattern='FROM "xavier" SINCE 1-Feb-2013 BEFORE 5-May-2013 (UNANSWERED)'
pattern='CC "jacques" FROM "xavier" (DELETED)'
pattern='TEXT "github"'
pattern='LARGER 10000 SMALLER 1000000'
pattern='SUBJECT "programmation"'
pattern='TO "student" (FLAGGED)'
pattern='(UNSEEN)'

see file mailboximap.py