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

Re: [PATCH] send-email: new 'add-envelope' option

From
Jeff King <peff@peff.net>
Date
Nov 21, 2009, 19:36 UTC
Message-ID
<20091121193600.GA3296@coredump.intra.peff.net>
In-Reply-To
<1258825410-28592-1-git-send-email-felipe.contreras@gmail.com>
On Sat, Nov 21, 2009 at 07:43:30PM +0200, Felipe Contreras wrote:
> Some MTAs make smart decisions based on the 'from' envelope (i.e. msmtp)

So my first thought was "how in the world is this different from setting the envelope sender?"

Reading the code, it seems:
Show 9 quoted lines
> -	$raw_from = $envelope_sender if (defined $envelope_sender);
> +	if (defined $envelope_sender) {
> +		$raw_from = $envelope_sender;
> +		$envelope_from = 1;
> +	}
>  	$raw_from = extract_valid_address($raw_from);
>  	unshift (@sendmail_parameters,
> -			'-f', $raw_from) if(defined $envelope_sender);
> +			'-f', $raw_from) if(defined $envelope_from);

that this is a boolean to mean "use the from address as the envelope sender".

It was of course all the more confusing for not being documented at all, but even if documented, --envelope-from is IMHO confusingly similar to --envelope-sender. Maybe --use-from-in-envelope would be a better name?

And of course, your patch is missing docs and tests.
-Peff
Previous: Felipe ContrerasNext: Felipe Contreras
Message 2 of 11 in “send-email: new 'add-envelope' option”
  1. send-email: new 'add-envelope' optionFelipe Contreras, Nov 21, 2009
  2. Jeff KingNov 21, 2009
  3. Felipe ContrerasNov 21, 2009
  4. Junio C HamanoNov 22, 2009
  5. Felipe ContrerasNov 22, 2009
  6. Junio C HamanoNov 22, 2009
  7. Junio C HamanoNov 22, 2009
  8. Felipe ContrerasNov 23, 2009
  9. Felipe ContrerasNov 22, 2009
  10. Junio C HamanoNov 22, 2009
  11. Felipe ContrerasNov 24, 2009

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.