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

Re: [PATCH] send-email: allow use of basic email list in --cc --to and --bcc

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jun 18, 2013, 10:55 UTC
Message-ID
<CALkWK0=rTk2Jx7x_sx1BcwFXWVa4TR=gp2+1Sx3COdMeO_2iZw@mail.gmail.com>
In-Reply-To
<1371549079-19291-1-git-send-email-Jorge-Juan.Garcia-Garcia@ensimag.imag.fr>
Jorge-Juan.Garcia-Garcia@ensimag.imag.fr wrote:
Show 10 quoted lines
> +sub split_email_list {
> +    my(@list) = @_;
> +    my @tmp;
> +    my @emails;
> +       for (my $i = 0; $i <= $#list; $i++) {
> +           if ($list[$i] =~ /,/) {
> +               @emails = split(/,/, $list[$i]);
> +           } else {
> +               @emails = $list[$i];
> +           }

Perhaps use map like in sanitize_address_list and validate_address_list to prettify this?

Previous: Matthieu MoyNext: Junio C Hamano
Message 10 of 13 in “send-email: allow use of basic email list in --cc --to and --bcc”
  1. send-email: allow use of basic email list in --cc --to and --bccjorge-juan.garcia-garcia@ensimag.imag.fr, Jun 18, 2013
  2. Ramkumar RamachandraJun 18, 2013
  3. Mathieu Liénard--MayorJun 18, 2013
  4. Ramkumar RamachandraJun 18, 2013
  5. benoît personJun 18, 2013
  6. Ramkumar RamachandraJun 18, 2013
  7. Mathieu Liénard--MayorJun 18, 2013
  8. Ramkumar RamachandraJun 18, 2013
  9. Matthieu MoyJun 18, 2013
  10. Ramkumar RamachandraJun 18, 2013
  11. Junio C HamanoJun 18, 2013
  12. Matthieu MoyJun 18, 2013
  13. Junio C HamanoJun 18, 2013

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.