My python code imports imaplib, and goes like:
mail = imaplib.IMAP4_SSL(host=server, port=port)
mail.login(account, password)
mail.select()
typ, msgnums = self.mail.search(*WHERE I WANT TO IMPLEMENT*)
I connect to the server and check the inbox regularly, and save the last seen mail's time data.
For the next mail check, I want to search the mails that have been received since that time, so that I don't have to handle already-seen mails.
I tried to use one of the SEARCH criteria, but it seems that they only care about a date, not a time.
How can I search emails that have been received since a certain time?