Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from imapclient import IMAPClient
- user = 'user'
- pass = 'pass'
- host = 'host'
- mail = IMAPClient(host, use_uid=True)
- mail.login(user, passs)
- mail.search(u'UNSEEN', charset=None)
- envel = mail.fetch([14184], ['ENVELOPE'])
Add Comment
Please, Sign In to add comment