From: Junio C Hamano Date: Tue, 22 Jul 2008 03:16:43 GMT Subject: Re: [PATCH] mailinfo: better parse email adresses containg parentheses Message-ID: <7v63qyr4kk.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1216647269-12287-1-git-send-email-book@cpan.org> "Philippe Bruhat (BooK)" writes: > When using git-rebase, author fields containing a ')' at the last > position had the close-parens character incorrectly removed > because the From: parser incorrectly matched it as > > user@host (User Name) > > (removing parentheses), instead of > > User Name (me) > > Signed-off-by: Philippe Bruhat (BooK) Hmm, tests? By the way, that second form parses like this: mailbox = name-addr = display-name angle-addr = "User Name (me) " display-name = phrase = "User Name" angle-addr = CFWS "<" addr-spec ">" = "(me) " So strictly speaking, shouldn't we be stripping the whole (me) as garbage? It is not even part of the display-name but is a whitespace equivalent comment.