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

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

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 1, 2015, 15:12 UTC
Message-ID
<vpqa8wjcvju.fsf@anie.imag.fr>
In-Reply-To
<1433168042-28269-2-git-send-email-remi.lespinet@ensimag.grenoble-inp.fr>
Remi Lespinet <remi.lespinet@ensimag.grenoble-inp.fr> writes:
> Remove the limitation imposed by 79ee555b (Check and document the
> options to prevent mistakes, 2006-06-21) which rejected every argument
> with comma in --cc, --to and --bcc
Missing "." at the end of sentence.
Show 5 quoted lines
> -The --bcc option must be repeated for each user you want on the bcc list.
> +Addresses containing commas ("Foo, Bar" <foobar@example.com>) are not
> +currently supported.
> ++
> +This option may be specified multiple times
Likewise (more instances in the patch).
Show 13 quoted lines
> +test_expect_success $PREREQ 'setup expected-list' '
> +	git send-email \
> +	--dry-run \
> +	--from="Example <from@example.com>" \
> +	--to="to1@example.com" \
> +	--to="to2@example.com" \
> +	--to="to3@example.com" \
> +	--cc="cc1@example.com" \
> +	--cc="Cc 1 <cc1@example.com>" \
> +	--cc="Cc 2 <cc2@example.com>" \
> +	--bcc="bcc1@example.com" \
> +	--bcc="bcc2@example.com" \
> +	0001-add-master.patch |	replace_variable_fields \
Tab after |. Not really serious, but why not a space?
Show 14 quoted lines
> +	>expected-list
> +'
> +
> +test_expect_success $PREREQ 'use email list in --cc --to and --bcc' '
> +	git send-email \
> +	--dry-run \
> +	--from="Example <from@example.com>" \
> +	--to="to1@example.com, to2@example.com" \
> +	--to="to3@example.com" \
> +	--cc="cc1@example.com, Cc 1 <cc1@example.com>" \
> +	--cc="Cc 2 <cc2@example.com>" \
> +	--bcc="bcc1@example.com, bcc2@example.com" \
> +	0001-add-master.patch |	replace_variable_fields \
> +	 >actual-list &&
You may drop the space between TAB and >.

I would group the tests: the 'setup' is only used to generate expected-list which is used only in the second test, so one is not useful without the other (we commonly have a 'setup ...' test which sets up something used by several other tests).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Remi LespinetNext: Junio C Hamano
Message 3 of 7 in “t9001-send-email: create a function replacing variable fields”
  1. 1/2 t9001-send-email: create a function replacing variable fieldsRemi Lespinet, Jun 1, 2015
  2. 2/2 send-email: allow multiple emails using --cc, --to and --bccRemi Lespinet, Jun 1, 2015
  3. Matthieu MoyJun 1, 2015
  4. Junio C HamanoJun 1, 2015
  5. Junio C HamanoJun 1, 2015
  6. Rémi LespinetJun 2, 2015
  7. Junio C HamanoJun 2, 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.