This class can access email messages in an IMAP server using an OAuth token.

It can connect to a IMAP server authenticating with either a user name and password or using a previously obtained OAuth token.

The class can also perform other operations with the IMAP server mailbox like listing folders, selecting folders to access, getting the total of emails in a folder, getting the headers and bodies of email messages, logout and disconnect.