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

Re: Review process improvements

From
Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Date
Dec 22, 2021, 15:45 UTC
Message-ID
<20211222154534.b2gb22ghn2mpyeur@meerkat.local>
In-Reply-To
<211222.86ee65pb60.gmgdl@evledraar.gmail.com>
On Wed, Dec 22, 2021 at 04:26:39AM +0100, Ævar Arnfjörð Bjarmason wrote:
Show 8 quoted lines
> That GGG does this is one reason I haven't considered using it. It
> breaks all sorts of E-Mail workflow assumptions from polluting the
> address book for every person who uses it, to any "from:<addr>" search
> needing special consideration etc.
> 
> Of course you'd need authentication etc, but is there a reason for why
> such tooling can't work more like an SMTP relay and less like GGG which
> (for some reason) insists on taking over the "From" header?

This would require pretending that we're authorized to send mail from the domain name of the commit author, so this unfortunately won't work (and hence the reason why GGG does it this way). E.g. say you have:

From: foo@redhat.com
Subject: [PATCH] Fix foo

For DMARC policies to properly work, this message would need to have a DKIM signature from redhat.com, so we'd need to have access to Red Hat's private keys. If we don't use DKIM signatures, then the recipient SMTP gateways may mark the message as spam (and they would be right, since we are pretending to be foo@redhat.com, i.e. acting just like phishers).

The only way for this to work is to do the From / X-Original-From / Follow-up-to / Reply-To header dance. Git does support this very well, and most email clients do the right thing when encountering this situation, but it's not going to have the exact same visual flow as patches sent directly via SMTP.

However, we will also write these messages to a public-inbox repository before making the From: substitutions, so if someone retrieves these patches with b4 or lei, as opposed to receiving them via their SMTP mailbox, they should be able to get proper From: in the headers.

-K
Previous: Fabian StelzerNext: Junio C Hamano
Message 9 of 22 in “Review process improvements”
  1. Emily ShafferDec 16, 2021
  2. rsbecker@nexbridge.comDec 16, 2021
  3. Junio C HamanoDec 17, 2021
  4. Konstantin RyabitsevDec 17, 2021
  5. Christian CouderDec 20, 2021
  6. Mark BrownDec 20, 2021
  7. Ævar Arnfjörð BjarmasonDec 22, 2021
  8. Fabian StelzerDec 22, 2021
  9. Konstantin RyabitsevDec 22, 2021
  10. Junio C HamanoDec 22, 2021
  11. Konstantin RyabitsevDec 22, 2021
  12. Why GitGitGadget does not use Sender:, was Re: Review process improvementsJohannes Schindelin, Jan 10, 2022
  13. Junio C HamanoJan 10, 2022
  14. Stefan HajnocziDec 23, 2021
  15. Ævar Arnfjörð BjarmasonDec 20, 2021
  16. Eric SunshineDec 20, 2021
  17. João Victor BonfimDec 20, 2021
  18. Emily ShafferJan 5, 2022
  19. João Victor BonfimJan 9, 2022
  20. brian m. carlsonDec 21, 2021
  21. Emily ShafferJan 5, 2022
  22. Matthias AßhauerJan 9, 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.