MailSearch
MailSearch[folder,assoc] searches the specified mail folder for messages with properties matching elements in assoc.
MailSearch[assoc] searches the current default mail inbox.
MailSearch[] gives the list of unread messages in the current default mail inbox.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.