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
Junio C Hamano <gitster@pobox.com>
Date
Jun 2, 2015, 17:19 UTC
Message-ID
<xmqqbngy3u5e.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CA+V2YBvP89=b5SFbkUVnEzaPT2aCiK9XN1Hd6qsN8HCmxxB+GA@mail.gmail.com>
Rémi Lespinet <remi.lespinet@gmail.com> writes:
Show 14 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> The reason why we have the "verify the input" thing, allow users to
>> supply multiple --to/--cc/etc., and do not try to split the
>> addresses ourselves is because we want to avoid mistakenly splitting
>> a single address like the above into two and producing syntactically
>> incorrect addresses.  People have relied on the current behaviour
>> for a long time, without manually dropping comma when they send
>> their patches with --to='"Jane, Doe" <jdoe@example.com>'.
>
> Yes, but they couldn't send with --to='"Jane, Doe" <jdoe@example.com>'
> anyway since 79ee555b (Check and document the options to prevent
> mistakes. 2006-06-21).  So I don't think that this part is a
> regression.
Ahh, stupid me.  Thanks.

Then starting with the "split at the comma" implementation is perfectly fine. People will learn not to use '"Doe, Jane" <jdoe>' because that will not work while the implementation is limited, and later when it is enhanced, they can start using that form.

Previous: Rémi Lespinet
Message 7 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.