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

Re: [PATCH/RFC] send-email: allow multiple emails using --cc --to and --bcc

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
May 28, 2015, 11:47 UTC
Message-ID
<vpqd21kvs8m.fsf@anie.imag.fr>
In-Reply-To
<1432809733-4321-2-git-send-email-remi.lespinet@ensimag.grenoble-inp.fr>
Remi Lespinet <remi.lespinet@ensimag.grenoble-inp.fr> writes:
Show 24 quoted lines
> --- a/t/t9001-send-email.sh
> +++ b/t/t9001-send-email.sh
> @@ -519,6 +519,12 @@ Result: OK
>  EOF
>  "
>  
> +replace_variable_fields () {
> +	sed	-e "s/^\(Date:\).*/\1 DATE-STRING/" \
> +		-e "s/^\(Message-Id:\).*/\1 MESSAGE-ID-STRING/" \
> +		-e "s/^\(X-Mailer:\).*/\1 X-MAILER-STRING/"
> +}
> +
>  test_suppression () {
>  	git send-email \
>  		--dry-run \
> @@ -526,10 +532,7 @@ test_suppression () {
>  		--from="Example <from@example.com>" \
>  		--to=to@example.com \
>  		--smtp-server relay.example.com \
> -		$patches |
> -	sed	-e "s/^\(Date:\).*/\1 DATE-STRING/" \
> -		-e "s/^\(Message-Id:\).*/\1 MESSAGE-ID-STRING/" \
> -		-e "s/^\(X-Mailer:\).*/\1 X-MAILER-STRING/" \
> +		$patches | replace_variable_fields \

I wouldn't insist on that, but this change would be better done in a separate, preparatory patch (that would be PATCH 1/2, and the actual code would be PATCH 2/2).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Remi LespinetNext: Eric Sunshine
Message 3 of 11 in “send-email: allow multiple emails using --cc --to and --bcc”
  1. send-email: allow multiple emails using --cc --to and --bccRemi Lespinet, May 28, 2015
  2. send-email: allow multiple emails using --cc --to and --bccRemi Lespinet, May 28, 2015
  3. Matthieu MoyMay 28, 2015
  4. Eric SunshineMay 28, 2015
  5. Eric SunshineMay 28, 2015
  6. send-email: allow multiple emails using --cc --to and --bccRemi LESPINET, May 29, 2015
  7. Junio C HamanoMay 28, 2015
  8. send-email: allow multiple emails using --cc --to and --bccRemi LESPINET, May 29, 2015
  9. Junio C HamanoMay 29, 2015
  10. Matthieu MoyMay 29, 2015
  11. Junio C HamanoMay 29, 2015

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.