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

Re: send-email garbled header with trailing doublequote in email

From
Jeff King <peff@peff.net>
Date
Nov 4, 2016, 00:11 UTC
Message-ID
<20161104001110.r2uzfybddbq2wyn4@sigill.intra.peff.net>
In-Reply-To
<20161104000351.GP4611@redhat.com>
On Fri, Nov 04, 2016 at 01:03:51AM +0100, Andrea Arcangeli wrote:
Show 9 quoted lines
> > can see why it is confused and does what it does (the whole email is
> > inside a double-quoted portion that is never closed, so it probably
> > thinks there is no hostname portion at all).
> 
> I would see it too, if it actually sent the email to the garbled email
> address it generated, but it actually got the right email address
> (because it sent the email to the right address), but it decided to
> show a different email address in the mail header than the one it sent
> the email to. But I figure this is the wrong list for such questions :).

It has to do with the "envelope recipient" versus the RFC822 header. Git provides the envelope recipient on the command-line, and that is what is used in the SMTP conversation. In theory the MTA does not need to ever even look at the contents of the message itself. Some do not, but some have features like rewriting the in-message headers (e.g., to turn "to: user" into "to: user@hostname"). You can probably disable that header-rewriting feature in your config, but I don't know very much about configuring postfix.

-Peff
Previous: Andrea Arcangeli
Message 9 of 9 in “send-email garbled header with trailing doublequote in email”
  1. Andrea ArcangeliNov 2, 2016
  2. Jeff KingNov 2, 2016
  3. Andrea ArcangeliNov 2, 2016
  4. Jeff KingNov 2, 2016
  5. Andrea ArcangeliNov 2, 2016
  6. Jeff KingNov 3, 2016
  7. demerphqNov 3, 2016
  8. Andrea ArcangeliNov 4, 2016
  9. Jeff KingNov 4, 2016

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.