aerc/worker/imap
Frode Aannevik b0eaf5191c Support imaps with oauthbearer authentication (Gmail)
imaps+oauthbearer://user:token@host?token_endpoint=...

 - the config Source password is used as access token if
   no token_endpoint parameter is set
 - the config Source password is used as refresh token if
   token_endpoint parameter is set, and used to exchange
   with an access token

The implementation has only been tested with Gmail.

    source = imaps+oauthbearer://{username}:{refersh_token}@imap.gmail.com:993? \
    client_id=XX&\
    client_secret=XX&\
    token_endpoint=https%3A%2F%2Faccounts.google.com%2Fo%2Foauth2%2Ftoken

client credentials created with

    https://console.developers.google.com/apis/credentials

refresh token created with

    https://github.com/google/gmail-oauth2-tools/blob/master/python/oauth2.py

rel: https://todo.sr.ht/~sircmpwn/aerc2/42
2019-07-11 19:36:14 -04:00
..
create.go Add archive command 2019-06-09 11:33:50 -04:00
fetch.go Factor IMAP-specific structs out of UI models 2019-07-08 16:06:28 -04:00
flags.go Use []uint32 instead of imap.SeqSet 2019-07-08 16:06:26 -04:00
imap.go Factor IMAP-specific structs out of UI models 2019-07-08 16:06:28 -04:00
list.go Factor UI models out of the worker message package 2019-07-08 16:06:23 -04:00
movecopy.go Use []uint32 instead of imap.SeqSet 2019-07-08 16:06:26 -04:00
open.go s/aerc2/aerc/g 2019-05-17 20:57:10 -04:00
worker.go Support imaps with oauthbearer authentication (Gmail) 2019-07-11 19:36:14 -04:00