From 38bca8f8bc11eff28991bedac344bfebebdd22d7 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sun, 17 Mar 2024 14:07:07 +0200 Subject: [PATCH] docs/meli.conf.5: mention use_oauth2=true for gmail oauth2 Signed-off-by: Manos Pitsidianakis --- meli/docs/meli.conf.5 | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/meli/docs/meli.conf.5 b/meli/docs/meli.conf.5 index 25ad29cc..c4c3e38f 100644 --- a/meli/docs/meli.conf.5 +++ b/meli/docs/meli.conf.5 @@ -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