Is there any method to read all mails (i.e. both read and unread) using Gmail API with OAuth.
The following link returns only new mails:>
edited: IMAP example to retrieve email count. Shows the count of all my mails. Seems to work this way.