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

Re: [PATCH resend] git-send-email: Use sanitized address when reading mbox body

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 26, 2024, 13:33 UTC
Message-ID
<xmqqzfr77rrv.fsf@gitster.g>
In-Reply-To
<202fc42e-c5be-4a4b-a135-302d8fbf6b2a@prolan.hu>
Csókás Bence <csokas.bence@prolan.hu> writes:
Show 9 quoted lines
>> In any case, if we were to move forward with this topic (whether
>> "send to corrected $sc instead" or "$c is suspicious, do not add it
>> to $cc" is picked as the direction), the motivation behind the
>> design decision to treat the address taken from a trailer line
>> differently needs to be explained better, I think. [...]
>> Your proposed commit log message is the place to help them.
>
> Okay. So in short, I should add justification for trusting mbox
> headers and not the message body, correct?
We want these to be explained for future readers:
 (1) we stuff the sanitized address to @cc in this particular place,
     but we still let all other places copy the original taken from
     the message to @to or @cc (as in the original code).
 (2) the reason behind the above difference is because we trust less
     about the "address looking" strings that appear on the trailer
     lines.

So, not just (2), but in order for the readers to understand why they should care about (2), they need to be told (1) as well.

Thanks.
Previous: Csókás Bence
Message 6 of 6 in “git-send-email: Use sanitized address when reading mbox body”
  1. git-send-email: Use sanitized address when reading mbox bodycsókás, Jun 21, 2024
  2. Junio C HamanoJun 21, 2024
  3. Csókás BenceJun 24, 2024
  4. Junio C HamanoJun 24, 2024
  5. Csókás BenceJun 26, 2024
  6. Junio C HamanoJun 26, 2024

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.