docs/meli.conf.5: mention use_oauth2=true for gmail oauth2
Run cargo lints / Lint on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (pull_request) Successful in 7m52s Details
Run Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (pull_request) Successful in 12m42s Details

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/371/head
Manos Pitsidianakis 2024-03-17 14:07:07 +02:00
parent ec01a4412a
commit 38bca8f8bc
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
1 changed files with 24 additions and 1 deletions

View File

@ -486,7 +486,12 @@ with
.Tn Google
that can use
.Tn OAUTH2
tokens.
tokens,
and set the option
.Ic use_oauth2
as
.Ql true
in the account configuration section.
For convenience in the
.Sy meli
repository under the
@ -533,6 +538,24 @@ should evaluate this command which if successful must only return a
.Tn base64 Ns
-encoded token ready to be passed to
.Tn IMAP.
.Pp
Your account section should look like this:
.Bd -literal
[accounts."gmail"]
root_mailbox = '[Gmail]'
format = "imap"
server_hostname='imap.gmail.com'
server_username="username@gmail.com"
use_oauth2 = true
server_password_command = "TOKEN=$(py...th2_string --quiet --access_token=$TOKEN"
server_port="993"
listing.index_style = "Conversations"
identity = "username@gmail.com"
display_name = "Name Name"
subscribed_mailboxes = ["*" ]
composing.store_sent_mail = false
composing.send_mail = { hostname = "smtp.gmail.com", port = 587, auth = { type = "xoauth2", token_command = "...", require_auth = true }, security = { type = "STARTTLS" } }
.Ed
.El
.Ss JMAP only
.HorizontalRule