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

Re: [PATCH] mailinfo: parse From header more strictly when run from rebase

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 15, 2010, 16:14 UTC
Message-ID
<7vzkyw6zo2.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1275885945-29241-1-git-send-email-jaysoffian@gmail.com>
Jay Soffian <jaysoffian@gmail.com> writes:
Show 10 quoted lines
> Given an email address of the form:
>
>  author@example.com <author@example.com@11B4E7C6-762E-4CF5-B2EB-3F7BD596981D>
>
> results in "author@example.com" being used as both the name and the
> address. This is due to an assumption in handle_from() that the
> first '@' denotes the address portion. The remainder of the string
> is then assumed to be the name, which is rejected by
> get_sane_name(), resulting in address being used for the name as
> well.

Sorry, but it is unclear from your message what problem you are trying to solve, what your desired outcome is, and why you think that outcome is desired. The bracketed one shown above does _not_ look like a valid email address, so using

    name = "author@example.com"
    email = "author@example.com@11B4..."
does not sound like a good thing to do to begin with.
Previous: Jay SoffianNext: Jay Soffian
Message 2 of 4 in “mailinfo: parse From header more strictly when run from rebase”
  1. mailinfo: parse From header more strictly when run from rebaseJay Soffian, Jun 7, 2010
  2. Junio C HamanoJun 15, 2010
  3. Jay SoffianJun 15, 2010
  4. Jay SoffianJun 15, 2010

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.