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

git-send-email adds a second From: in the body if eml contains one already

From
QSQuentin Schulz <quentin.schulz@theobroma-systems.com>
Date
Oct 20, 2022, 08:56 UTC
Message-ID
<09e125ea-5ea5-40c8-575e-57cb7e1806ff@theobroma-systems.com>
Hi,
I recently encountered some issue with my particular setup.

https://lore.kernel.org/lkml/20221019-upstream-puma-sd-40mhz-v1-0-754a76421518@theobroma-systems.com/raw is the problematic mail, note the two From: lines in the mail body.

This particular patch has a git author (Jakob) different from my local git identity (Quentin Schulz <quentin.schulz at theobroma-systems.com>) which is different from the sendemail.from configuration (Quentin Schulz <foss+kernel at 0leil.net>).

I created an eml file with `b4 send --output-dir dir` which gives the following:

```
From: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Date: Wed, 19 Oct 2022 17:41:28 +0200
Subject: [PATCH] arm64: dts: rockchip: lower rk3399-puma-haikou SD 
controller
  clock frequency
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Message-Id: 
<20221019-upstream-puma-sd-40mhz-v1-0-78f7eded8a11@theobroma-systems.com>
To: [snip]
Cc: [snip]
X-Mailer: b4 0.11.0-dev-ce3c3
From: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>

[snip] ```

git config sendemail.from is set to: Quentin Schulz <foss+kernel@0leil.net>

I sent the patch with `git send-email mail.eml`.

I initially reported to the b4 community but was advised to also fill a bug to git tool since it is believed a second From: shouldn't make it to the mail if there's already one. See b4 bug report: https://lore.kernel.org/tools/9bdb42f7-661a-77ed-97e5-33ba7a31fd9e@theobroma-systems.com/

I'm using git version 2.37.3, the latest in Fedora package feed for F36.

Let me know if I can clarify some things or help debug/test stuff, Cheers, Quentin

Message 1 of 1 in “git-send-email adds a second From: in the body if eml contains one already”
  1. Quentin SchulzOct 20, 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.