m = imaplib.IMAP4_SSL('imap.gmail.com')
typ, accountDetails =m.login(userName, passwd)
m.select("inbox")
resp, data = m.search(None, "(ON {0})".format( time.strftime("%d-%b-%Y") ),'(FROM "email")' )
print(resp)
print(data)
This gives me the output:
OK
[b'6391 6395']
So I assume 'OK' means it found an email but I'm not sure what the ' [b '6391 6395'] means. What do those numbers represent?