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

Re: forcing an in-body From header

From
Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Date
Aug 26, 2022, 16:48 UTC
Message-ID
<20220826164828.cxsveqtjiyimdj7s@meerkat.local>
In-Reply-To
<c403e526-7455-4f26-fcef-97c99f9af539@rasmusvillemoes.dk>
On Fri, Aug 26, 2022 at 03:17:34PM +0200, Rasmus Villemoes wrote:
Show 6 quoted lines
> Hi,
> 
> Some mailing lists mangle the real From: header, making it a little hard
> for maintainers to apply patches directly using 'git am'. See e.g.
> https://lists.openembedded.org/g/openembedded-core/message/166515 . One
> way to work around that is by having an in-body From: "header".

This is only tangentially related to the problem at hand, but the list in question is also mirrored on lore.kernel.org:

https://lore.kernel.org/openembedded-core/20220531151052.3667079-1-sean.anderson@seco.com/

The mirroring is done with a direct push hook from groups.io, which is why we get messages without all the groups.io mangling.

Show 5 quoted lines
> However, merely setting sendemail.from or format.from is not enough to
> get such a header, if the value happens to be identical to the patch
> author (which it would usually be). So, could we get some config knob
> and/or command line switch to force an in-body from header? Then one
> could set that on a per-project basis, for projects with such mailing lists.

I agree that it's a nice feature to have, though I would put this into the sendemail config instead of using an env variable, something like:

    [sendemail]
      in-body-headers = From
-K
Previous: Rasmus VillemoesNext: Junio C Hamano
Message 2 of 5 in “forcing an in-body From header”
  1. Rasmus VillemoesAug 26, 2022
  2. Konstantin RyabitsevAug 26, 2022
  3. Junio C HamanoAug 26, 2022
  4. Rasmus VillemoesAug 29, 2022
  5. Junio C HamanoAug 26, 2022

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.