From: Junio C Hamano <gitster@pobox.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: git send-email splits name with comma
Date: Mon, 04 Oct 2021 11:47:14 -0700 [thread overview]
Message-ID: <xmqqczokwrt9.fsf@gitster.g> (raw)
In-Reply-To: <CAMuHMdUk5=sqFvy51nxv5g3UFPhQnZ-6dBOS=xVDWdTxuLKuRQ@mail.gmail.com> (Geert Uytterhoeven's message of "Mon, 4 Oct 2021 19:18:35 +0200")
Geert Uytterhoeven <geert@linux-m68k.org> writes:
> Hi Andreas,
>
> On Mon, Oct 4, 2021 at 4:31 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>> On Okt 04 2021, Geert Uytterhoeven wrote:
>> > If the name of an email address contains a comma, it will be split
>> > incorrectly into multiple addresses.
>>
>> If you want to include a comma in the display-name part of an address,
>> you need to use the quoted-string form of the phrase.
>
> Adding more quoting like:
>
> git send-email --to "\"foo bar, geert\" <geert@linux-m68k.org>"
>
> indeed works. But I feel git send-email could do better, given it already
> receives the full email address in a single argv[] entry.
Sorry, but I do not quite follow.
If I were to send a message both to the list and to you, wouldn't
git send-email --to "l-k@vger.k.org, geert <g@l-m68k.o>"
a valid way to do so?
next prev parent reply other threads:[~2021-10-04 18:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-04 14:11 git send-email splits name with comma Geert Uytterhoeven
2021-10-04 14:31 ` Andreas Schwab
2021-10-04 17:18 ` Geert Uytterhoeven
2021-10-04 18:47 ` Junio C Hamano [this message]
2021-10-04 19:56 ` Geert Uytterhoeven
2021-10-04 23:47 ` Ævar Arnfjörð Bjarmason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqczokwrt9.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=geert@linux-m68k.org \
--cc=git@vger.kernel.org \
--cc=schwab@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).