I'm using the following:
import imaplib
import email
m = imaplib.IMAP4_SSL("imap.gmail.com", 993)
m.login("myemail","mypass")
m.select("Inbox")
result, data = m.uid('search', None, "ALL") # search all email and return uids
if result == 'OK':...
asked by
09.04.2018 / 21:07