set imap_user = "<username>@guidepointsecurity.com"
# set imap_pass = <password>

set smtp_url = "smtps://<username>@guidepointsecurity.com@smtp.gmail.com:465/"
# set smtp_pass = $imap_pass

set ssl_force_tls = yes

# Pull a copy of this script:
#     https://github.com/google/gmail-oauth2-tools/blob/master/python/oauth2.py
# I saved mine as ~/bin/mutt-gmail-oauth2.py
#
# Follow their instructions, summarized below
#
# Set up a client of type 'Web Application', while signed into gps, here:
#     https://console.developers.google.com/apis/credentials
#
# Authenticate and collect your refresh token with this command
#   mutt-gmail-oauth2.py --user='<username>@guidepointsecurity.com' \
#      --client_id='<clientid>' \
#      --client_secret='<clientsecret>' \
#      --generate_oauth2_token
#
# Then put the pieces together in the below 'refresh_command'
set imap_authenticators="oauthbearer"
set imap_oauth_refresh_command="~/bin/mutt-gmail-oauth2.py --quiet\
    --user='<username>@guidepointsecurity.com'\
    --client_id='<clientid>'\
    --client_secret='<clientsecret>'\
    --refresh_token='<refreshtoken>'"

set smtp_authenticators=${imap_authenticators}
set smtp_oauth_refresh_command=${imap_oauth_refresh_command}