threads / discuss / 41027

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

Subject: 'Comma in -to/-cc entry' on valid addresses

## tl;dr

2 messages between Dec 17, 2015 and Dec 17, 2015.

replies: 1people: 2as markdown or json

Andy Lutomirski· Dec 17, 2015, 00:43 UTC · lore

$ 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· Dec 17, 2015, 06:50 UTC · re: Andy Lutomirski · lore

Re: 'Comma in -to/-cc entry' on valid addresses

Andy Lutomirski <luto@amacapital.net> writes:
Show 6 quoted lines
> $ 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/

← back to recent threads