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

Re: get_maintainer.pl sends bogus addresses to git send-email

From
Jeff King <peff@peff.net>
Date
Apr 8, 2020, 17:28 UTC
Message-ID
<20200408172853.GA1961925@coredump.intra.peff.net>
In-Reply-To
<2afc201cea5fd59829ce818041b4290a0ec5bb8c.camel@perches.com>
On Tue, Apr 07, 2020 at 02:56:19PM -0700, Joe Perches wrote:
Show 6 quoted lines
> > Syntactically they are rfc822 comments, and send-email _should_ be able
> > to handle them (and does in recent versions).
> 
> I'm not certain that comments are allowed _after_ a tld in an
> email address.  In any case, I guess it's a good thing I used
> parentheses for the get_maintainer rolestats block.
Oh, it's much more horrible than that. RFC822 contains this example:
  Muhammed.(I am  the greatest) Ali @(the)Vegas.WBA
which parses to:
  Muhammed.Ali@Vegas.WBA
Perl's Mail::Address does decipher that correctly.
Show 6 quoted lines
> > > linux-kernel@vger.kernel.org (open list)
> > 
> > In this one, I think that the comment will be used as the name field,
> > since there isn't one.
> 
> I think that slightly unexpected as the name field is not required.

TBH, so do I. That's all done by Mail::Address's format() method. We could probably convince it to be less magical, but perhaps it's best to just leave it alone. Presumably that logic has some historical basis, and as you note, it's a mistake to be passing these fields into send-email in the first place.

-Peff
Previous: Joe Perches
Message 8 of 8 in “get_maintainer.pl sends bogus addresses to git send-email”
  1. Olaf HeringApr 7, 2020
  2. Jeff KingApr 7, 2020
  3. Joe PerchesApr 7, 2020
  4. Olaf HeringApr 7, 2020
  5. Joe PerchesApr 7, 2020
  6. Jeff KingApr 7, 2020
  7. Joe PerchesApr 7, 2020
  8. Jeff KingApr 8, 2020

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.