Guest User

Untitled

a guest
Mar 24th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. from imapclient import IMAPClient
  2.  
  3. user = 'user'
  4. pass = 'pass'
  5. host = 'host'
  6.  
  7. mail = IMAPClient(host, use_uid=True)
  8. mail.login(user, passs)
  9. mail.search(u'UNSEEN', charset=None)
  10. envel = mail.fetch([14184], ['ENVELOPE'])
Add Comment
Please, Sign In to add comment