I am writing a wordpress plugin and need to show recent emails on plugin page.
I am using IMAP and want to keep track of UID, UIVALIDITY and INTERNALDATE to identify newly arrived emails but i don't know how to get INTERNALDATE from message.
A date attribute is returned from
imap_headerinfo(). Is it INTERNALDATE?