git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3 3/3] send-email: add option to generate passswords like OAuth2 tokens

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 22, 2025, 22:20 UTC
Message-ID
<xmqqh62f3kji.fsf@gitster.g>
In-Reply-To
<PN3PR01MB9597813722A475923ED1C036B8BB2@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>
Aditya Garg <gargaditya08@live.com> writes:
Show 7 quoted lines
> +--smtp-passeval[=<command>]::
> +	Generate password or OAuth2 token for SMTP AUTH. The argument is
> +	optional. If specified, it will use the output of any password
> +	or OAuth2 token generated using the command specified.
> ++
> +Note that it will override any existing password specified using
> +`--smtp-user` or a `sendemail.smtpUser`.

If the argument is optional, we should explain what the behaviour is when the optional argument is omitted, as well as how the given argument is used. You are doing only the latter, but not the former.

Shouldn't the "command" be mandatory, if the option is used? I do not quite see how these invocations

	git-send-email ... --smtp-passeval ...
	git-send-email ... --smtp-passeval= ...
that do not specify the command to be used is useful.
Previous: Aditya GargNext: Aditya Garg
Message 9 of 10 in “send-email: add oauth2 support and fix outlook breaking threads”
  1. 0/3 send-email: add oauth2 support and fix outlook breaking threadsAditya Garg, Apr 22, 2025
  2. 1/3 send-email: implement SMTP bearer authenticationAditya Garg, Apr 22, 2025
  3. 2/3 send-email: retrieve Message-ID from outlook SMTP serverAditya Garg, Apr 22, 2025
  4. Junio C HamanoApr 22, 2025
  5. Aditya GargApr 23, 2025
  6. Junio C HamanoApr 23, 2025
  7. Aditya GargApr 23, 2025
  8. 3/3 send-email: add option to generate passswords like OAuth2 tokensAditya Garg, Apr 22, 2025
  9. Junio C HamanoApr 22, 2025
  10. Aditya GargApr 23, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.