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

Re: [PATCH] mailinfo: better parse email adresses containg parentheses

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 22, 2008, 03:16 UTC
Message-ID
<7v63qyr4kk.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1216647269-12287-1-git-send-email-book@cpan.org>
"Philippe Bruhat (BooK)" <book@cpan.org> writes:
Show 11 quoted lines
>     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) <user@host>
>
> Signed-off-by: Philippe Bruhat (BooK) <book@cpan.org>
Hmm, tests?
By the way, that second form parses like this:
	mailbox =
        name-addr =
        display-name angle-addr = "User Name (me) <user@host>"
        display-name =
        phrase = "User Name"
        
        angle-addr = CFWS "<" addr-spec ">" = "(me) <user@host>"

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.

        
Previous: Lukas SandströmNext: Philippe Bruhat (BooK)
Message 3 of 4 in “mailinfo: better parse email adresses containg parentheses”
  1. mailinfo: better parse email adresses containg parenthesesPhilippe Bruhat (BooK), Jul 21, 2008
  2. Lukas SandströmJul 21, 2008
  3. Junio C HamanoJul 22, 2008
  4. Philippe Bruhat (BooK)Jul 22, 2008

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.