Add support for OAUTHBEARER / XOAUTH2 (the gmail song and dance)
Gmail, Yahoo and Outlook prefer clients to use oauth2 as the sasl mechanism. And will block access without explicit permission from the user to use a more conventional authentication approach.
OAUTHBEARER is still only a proposed standard and still open for changes and XOAUTH2 seems to be a gmail specific imap extension