From: Linus Torvalds <torvalds@osdl.org>
To: "Karl Hasselström" <kha@treskal.com>
Cc: Andy Whitcroft <apw@shadowen.org>,
Catalin Marinas <catalin.marinas@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH] Allow hand-editing of patches before sending
Date: Sun, 5 Nov 2006 08:44:13 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.64.0611050831250.25218@g5.osdl.org> (raw)
In-Reply-To: <20061105114353.GB19707@diana.vm.bytemark.co.uk>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2102 bytes --]
On Sun, 5 Nov 2006, Karl Hasselström wrote:
>
> 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:
> 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
next prev parent reply other threads:[~2006-11-05 16:45 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-01 9:00 [PATCH] Allow hand-editing of patches before sending Karl Hasselström
2006-11-02 10:32 ` Catalin Marinas
2006-11-02 11:36 ` Karl Hasselström
2006-11-03 9:39 ` Catalin Marinas
2006-11-03 9:58 ` Karl Hasselström
2006-11-03 10:01 ` Karl Hasselström
2006-11-03 10:21 ` Petr Baudis
2006-11-03 10:31 ` Robin Rosenberg
2006-11-03 10:36 ` Andreas Ericsson
2006-11-03 10:53 ` Karl Hasselström
2006-11-03 11:21 ` Junio C Hamano
2006-11-03 11:35 ` Karl Hasselström
2006-11-03 12:56 ` Catalin Marinas
2006-11-03 12:07 ` Andy Whitcroft
2006-11-03 12:36 ` Karl Hasselström
2006-11-03 14:03 ` Andy Whitcroft
2006-11-03 18:48 ` Linus Torvalds
2006-11-05 11:43 ` Karl Hasselström
2006-11-05 16:44 ` Linus Torvalds [this message]
2006-11-05 19:04 ` Karl Hasselström
2006-11-05 19:29 ` Jakub Narebski
2006-11-06 7:45 ` [PATCH] Add a MIME-Version header to e-mails Karl Hasselström
2006-11-06 7:56 ` Karl Hasselström
2006-11-07 9:53 ` Catalin Marinas
2006-11-07 19:09 ` Catalin Marinas
2006-11-08 8:40 ` Karl Hasselström
2006-11-08 9:41 ` Catalin Marinas
2006-11-08 10:01 ` Karl Hasselström
2006-11-08 10:12 ` Catalin Marinas
2006-11-12 21:14 ` [StGIT PATCH 0/2] mail and import tests Karl Hasselström
2006-11-12 21:15 ` [StGIT PATCH 1/2] Regression test for "stg import" Karl Hasselström
2006-11-12 21:15 ` [StGIT PATCH 2/2] Regression test for "stg mail" Karl Hasselström
2006-11-11 12:24 ` [PATCH] Add a MIME-Version header to e-mails Karl Hasselström
2006-11-16 17:24 ` Catalin Marinas
2006-11-03 12:44 ` [PATCH] Allow hand-editing of patches before sending Catalin Marinas
2006-11-03 13:02 ` Karl Hasselström
2006-11-03 13:16 ` Catalin Marinas
2006-11-03 13:25 ` Karl Hasselström
2006-11-03 13:25 ` Catalin Marinas
2006-11-03 13:33 ` Karl Hasselström
2006-11-03 13:42 ` Karl Hasselström
2006-11-03 13:56 ` Catalin Marinas
2006-11-03 14:37 ` Catalin Marinas
2006-11-03 13:39 ` Petr Baudis
2006-11-03 14:01 ` Catalin Marinas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0611050831250.25218@g5.osdl.org \
--to=torvalds@osdl.org \
--cc=apw@shadowen.org \
--cc=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
--cc=kha@treskal.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).