code_junkie

How do I perform an IMAP search in Python (using Gmail and imaplib)?

Nov 11th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. c = imaplib.IMAP4_SSL('imap.gmail.com')
  2. c.list()
  3. ('OK', [..., '(\HasNoChildren) "/" "GM"', ...])
  4. c.search(???)
Add Comment
Please, Sign In to add comment