The Central Go Modules Repository

To use GoCenter:
export GOPROXY=https://gocenter.io
0
Stars
UNKNOWN
License
4
Downloads
January 1st 0001
Last Modified
Version:
Loading...

go-gmail-client

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 ${GOPATH}/go-gmail-client.flags:

--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.