@@ -83,9 +83,9 @@ local_address = 127.0.0.1
8383[Account setup]
8484documentation = Accounts are specified using your email address as the section heading (e.g., [
[email protected] ],
8585 etc, below). Account usernames (i.e., email addresses) must be unique - only one entry per account is permitted.
86- Each account section must provide values for `permission_url`, `token_url`, `oauth2_scope` and `redirect_uri `. If
87- you are adding an account for a service other than the examples shown below then the provider's documentation should
88- provide these details.
86+ Each account section must provide values for at least `token_url`, `oauth2_scope` and `client_id `. Depending on the
87+ OAuth 2.0 flow you are using, other values may also be required (see examples below). If you are adding an account
88+ for a service other than the examples shown below then the provider's documentation should provide these details.
8989
9090 You will also need to add your own `client_id` and `client_secret` values as indicated below. These can either be
9191 reused from an existing source (such as another email client that supports OAuth 2.0), or you can register and use
@@ -228,7 +228,6 @@ documentation = *** note: this is an advanced O365 account example; in most case
228228token_url = https://login.microsoftonline.com/*** your tenant id here ***/oauth2/v2.0/token
229229oauth2_scope = https://outlook.office365.com/.default
230230oauth2_flow = client_credentials
231- redirect_uri = http://localhost
232231client_id = *** your client id here ***
233232client_secret = *** your client secret here ***
234233
@@ -237,7 +236,6 @@ documentation = *** note: this is an advanced O365 account example; in most case
237236token_url = https://login.microsoftonline.com/*** your tenant id here ***/oauth2/v2.0/token
238237oauth2_scope = https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/POP.AccessAsUser.All https://outlook.office365.com/SMTP.Send offline_access
239238oauth2_flow = password
240- redirect_uri = http://localhost
241239client_id = *** your client id here ***
242240client_secret = *** your client secret here ***
243241
@@ -246,7 +244,6 @@ documentation = *** note: this is an advanced Google account example; in most ca
246244token_url = https://oauth2.googleapis.com/token
247245oauth2_scope = https://mail.google.com/
248246oauth2_flow = service_account
249- redirect_uri = http://localhost
250247client_id = file
251248client_secret = *** your /path/to/service-account-key.json here ***
252249
@@ -255,7 +252,6 @@ documentation = *** note: this is an advanced Google account example; in most ca
255252token_url = https://oauth2.googleapis.com/token
256253oauth2_scope = https://mail.google.com/
257254oauth2_flow = service_account
258- redirect_uri = http://localhost
259255client_id = key
260256client_secret = *** your pasted service account JSON key file contents here,
261257 making sure to indent all lines by at least one space ***
0 commit comments