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/