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
Junio C Hamano <gitster@pobox.com>
Date
May 28, 2015, 17:45 UTC
Message-ID
<xmqq382giokd.fsf@gitster.dls.corp.google.com>
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 8 quoted lines
> From: Jorge Juan Garcia Garcia <Jorge-Juan.Garcia-Garcia@ensimag.imag.fr>
>
> Add the possibility to use a list of emails separated by commas
> in flags --cc --to and --bcc instead of having to use one flag
> per email address.
>
> The use-case is to copy-paste a list of addresses from an email.
> This change makes it so that we no longer need to cut the list.
s/Add the possibility to use/Accept/;
I am not sure "having to use" is a good characterization.
    Accept a list of emails separated by commas in flags --cc, --to
    and --bcc.  Multiple addresses can already be given by using
    these options multiple times, but it is more convenient to allow
    cutting-and-pasting a list of addresses from the header of an
    existing e-mail message, which already lists them as
    comma-separated list, as a value to a single parameter.
perhaps?
> The format of email list handled is basic for now:
> 	$ git send-email --to='Foo <foo@example.com>, bar@example.com'
> We thought it would be nice to have a "first-step" version which works
Separate displayed material from the body text with blank lines, i.e.
        The format of email list handled is basic for now:
                $ git send-email --to='Foo ...
        We thought it would be nice to have a "first-step" version which works
"We thought"?
> before handling more complex ones such as names with commas:
> 	$ git send-email --to='Foo, Bar <foobar@example.com>'

Shouldn't this example send to two users, i.e. a local user Foo and the mailbox 'foobar' at example.com whose human-readable name is Bar? If so, that is a bad example to illustrate the aspiration for the finished patch?

> This artificial limitation is imposed by 79ee555b (Check and document
> the options to prevent mistakes, 2006-06-21).

It is unclear from this sentence what you are doing with the limitation (is it artificial? do we have to call it artificial?). The reader of the log message cannot tell if you are keeping it, or if you are lifting it with this patch.

> Signed-off-by: Mathieu Lienard--Mayor <Mathieu.Lienard--Mayor@ensimag.imag.fr>
> Signed-off-by: Jorge Juan Garcia Garcia <Jorge-Juan.Garcia-Garcia@ensimag.imag.fr>
> Signed-off-by: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
> Contributions-by: Remi Lespinet <remi.lespinet@ensimag.grenoble-inp.fr>

You touched the patch or sent it out, so you need to give your own sign-off.

Thanks.
Previous: Remi LESPINETNext: Remi LESPINET
Message 7 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.