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

Re: [PATCH] Allow hand-editing of patches before sending

From
Linus Torvalds <torvalds@osdl.org>
Date
Nov 5, 2006, 16:44 UTC
Message-ID
<Pine.LNX.4.64.0611050831250.25218@g5.osdl.org>
In-Reply-To
<20061105114353.GB19707@diana.vm.bytemark.co.uk>
On Sun, 5 Nov 2006, Karl Hasselström wrote:
Show 6 quoted lines
> 
> So the right thing to do would be to teach StGIT to generate
> 8bit-encoded output, and trust the SMTP transfer path do mangle it
> correctly? (Hmm. No, since StGIT talks directly with the first SMTP
> server in the chain, it needs to be able to QP-encode the mail itself
> if necessary -- but it should seldom be necessary, then.)

Right. You could even just consider it an error if the mailserver doesn't reply to EHLO with 8BITMIME, I really think it's that rare.

> In that case, the problem with the current implementation (without my
> patch applied) is likely to be that it fails to provide the headers
> needed for the SMTP path to be able to transform it losslessly.

I _think_ it should be sufficient to just set the Content-Type and Content-Transfer-Encoding to say something like "text/plain; charset=UTF8" and "8bit" respectively. But somebody who know the SMTP rules better should check.

HOWEVER:
Show 8 quoted lines
>   Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
>           id S1750700AbWJVMCV (ORCPT <rfc822;kha-list-git@hemma.treskal.com>);
>           Sun, 22 Oct 2006 08:02:21 -0400
>   X-Warning: Original message contained 8-bit characters, however during
>              the SMTP transport session the receiving system did not announce
>              capability of receiving 8-bit SMTP (RFC 1651-1653), and as this
>              message does not have MIME headers (RFC 2045-2049) to enable
>              encoding change, we had very little choice.

This does seem to say that somebody didn't even announce 8-bit capability in the first place. That's a zmailer error message, and it does imply that somebody was running a bad server.

That said, _if_ your message had had the proper mime-type specifiers, then zmailer would happily have QP-converted the message for you, so everything would have been fine.

> The mail server (vger talking to itself, if the Received: headers were
> added in order) complained that there were no MIME headers, so it had
> to guess the charset.
vger itself? Strange.
		Linus
Previous: Karl HasselströmNext: Karl Hasselström
Message 19 of 31 in “Allow hand-editing of patches before sending”
  1. Allow hand-editing of patches before sendingKarl Hasselström, Nov 1, 2006
  2. Catalin MarinasNov 2, 2006
  3. Karl HasselströmNov 2, 2006
  4. Catalin MarinasNov 3, 2006
  5. Karl HasselströmNov 3, 2006
  6. Karl HasselströmNov 3, 2006
  7. Petr BaudisNov 3, 2006
  8. Robin RosenbergNov 3, 2006
  9. Andreas EricssonNov 3, 2006
  10. Karl HasselströmNov 3, 2006
  11. Junio C HamanoNov 3, 2006
  12. Karl HasselströmNov 3, 2006
  13. Catalin MarinasNov 3, 2006
  14. Andy WhitcroftNov 3, 2006
  15. Karl HasselströmNov 3, 2006
  16. Andy WhitcroftNov 3, 2006
  17. Linus TorvaldsNov 3, 2006
  18. Karl HasselströmNov 5, 2006
  19. Linus TorvaldsNov 5, 2006
  20. Karl HasselströmNov 5, 2006
  21. Catalin MarinasNov 3, 2006
  22. Karl HasselströmNov 3, 2006
  23. Catalin MarinasNov 3, 2006
  24. Karl HasselströmNov 3, 2006
  25. Catalin MarinasNov 3, 2006
  26. Karl HasselströmNov 3, 2006
  27. Karl HasselströmNov 3, 2006
  28. Catalin MarinasNov 3, 2006
  29. Catalin MarinasNov 3, 2006
  30. Petr BaudisNov 3, 2006
  31. Catalin MarinasNov 3, 2006

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.