···8298829882998299</sect1>
8300830083018301+<sect1 id="oauth">
83028302+<title>OAUTHBEARER Support</title>
83038303+83048304+<para>
83058305+Preliminary OAUTH support for IMAP, POP, and SMTP is provided via
83068306+external scripts.
83078307+</para>
83088308+83098309+<para>
83108310+At least for Gmail, you can use the <literal>oauth2.py</literal>
83118311+script from Google's gmail-oauth2-tools: <ulink
83128312+url="https://github.com/google/gmail-oauth2-tools/blob/master/python/oauth2.py"
83138313+>https://github.com/google/gmail-oauth2-tools/blob/master/python/oauth2.py</ulink>
83148314+</para>
83158315+83168316+<para>
83178317+You'll need to get your own oauth client credentials for Gmail here:
83188318+<ulink url="https://console.developers.google.com/apis/credentials"
83198319+>https://console.developers.google.com/apis/credentials</ulink>
83208320+</para>
83218321+83228322+<para>
83238323+Then, you'd use <literal>oauth2.py</literal> with
83248324+<literal>--generate_oauth2_token</literal> to get a refresh token, and
83258325+configure mutt with:
83268326+</para>
83278327+83288328+<screen>
83298329+set imap_authenticators="oauthbearer"
83308330+set imap_oauth_refresh_command="/path/to/oauth2.py --quiet --user=[email_address]\
83318331+ --client_id=[client_id] --client_secret=[client_secret]\
83328332+ --refresh_token=[refresh_token]"
83338333+</screen>
83348334+83358335+<para>
83368336+Substitute pop or smtp for imap in the above example to configure for those.
83378337+</para>
83388338+</sect1>
83398339+83018340<sect1 id="account-hook">
83028341<title>Managing Multiple Accounts</title>
83038342
+3-3
init.h
···13381338 ** The command to run to generate an OAUTH refresh token for
13391339 ** authorizing your connection to your IMAP server. This command will be
13401340 ** run on every connection attempt that uses the OAUTHBEARER authentication
13411341- ** mechanism.
13411341+ ** mechanism. See ``$oauth'' for details.
13421342 */
13431343 { "imap_pass", DT_STR, R_NONE, UL &ImapPass, UL 0 },
13441344 /*
···24242424 ** The command to run to generate an OAUTH refresh token for
24252425 ** authorizing your connection to your POP server. This command will be
24262426 ** run on every connection attempt that uses the OAUTHBEARER authentication
24272427- ** mechanism.
24272427+ ** mechanism. See ``$oauth'' for details.
24282428 */
24292429 { "pop_pass", DT_STR, R_NONE, UL &PopPass, UL "" },
24302430 /*
···34023402 ** The command to run to generate an OAUTH refresh token for
34033403 ** authorizing your connection to your SMTP server. This command will be
34043404 ** run on every connection attempt that uses the OAUTHBEARER authentication
34053405- ** mechanism.
34053405+ ** mechanism. See ``$oauth'' for details.
34063406 */
34073407 { "smtp_pass", DT_STR, R_NONE, UL &SmtpPass, UL 0 },
34083408 /*