# 'Comma in -to/-cc entry' on valid addresses

2 messages from 2015-12-17 to 2015-12-17. Participants: Andy Lutomirski, Matthieu Moy.
Thread: https://gitlist.dev/t/41027

## Andy Lutomirski, 2015-12-17 00:43

Subject: 'Comma in -to/-cc entry' on valid addresses
Message-ID: <CALCETrWY+n-m_P-0ub4ZPn5yGrr52C8F+wAtJok-cCQmM12d5Q@mail.gmail.com>
URL: https://gitlist.dev/e/CALCETrWY%2Bn-m_P-0ub4ZPn5yGrr52C8F%2BwAtJok-cCQmM12d5Q%40mail.gmail.com

```
$ git send-email --to='"Address, Valid" <somebody@foobarbaz.com>'
Comma in --to entry: "Address, Valid" <somebody@foobarbaz.com>'
$ git --version
git version 2.5.0

This appears to be a recent regression.

For an authority on why the current behavior is wrong, see RFC 2822
section 3.4, which defines mailbox and mailbox-list as well as section
3.2.6, which indicates that a phrase can contain a quoted-string.


--Andy

```

## Matthieu Moy, 2015-12-17 06:50

Subject: Re: 'Comma in -to/-cc entry' on valid addresses
Message-ID: <vpq7fkdfu1q.fsf@anie.imag.fr>
URL: https://gitlist.dev/e/vpq7fkdfu1q.fsf%40anie.imag.fr
In-Reply-To: <CALCETrWY+n-m_P-0ub4ZPn5yGrr52C8F+wAtJok-cCQmM12d5Q@mail.gmail.com>

```
Andy Lutomirski <luto@amacapital.net> writes:

> $ git send-email --to='"Address, Valid" <somebody@foobarbaz.com>'
> Comma in --to entry: "Address, Valid" <somebody@foobarbaz.com>'
> $ git --version
> git version 2.5.0
>
> This appears to be a recent regression.

It's not: the check was introduced in 79ee555 (Check and document the
options to prevent mistakes., 2006-06-21).

The check was _removed_ in Git 2.6.0, which happily accepts your
command. IOW, the bug is already fixed :-).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

```
