Toy client that uses XOAUTH2 to authenticate with Gmail. Doesn’t do anything interesting yet. There’s more featureful IMAP clients libraries in Go that can do this as well; this was a learning experience more than something useful.
For run.sh to work, I suggest the following in
--oauthclientid=CLIENTID --oauthclientsecret=CLIENTSECRET #--oauthauthcode=AUTHCODE
Uncomment auth code after starting the client, visiting the URL and obtaining the auth code that you can put up there.
Token refresh is probably not working.