From: "Björn Steinbrink" <B.Steinbrink@gmx.de>
To: Brian Swetland <swetland@google.com>
Cc: "Johannes Schindelin" <Johannes.Schindelin@gmx.de>,
"Ludovic Courtès" <ludo@chbouib.org>,
git@vger.kernel.org
Subject: Re: `git-send-email' doesn't specify `Content-Type'
Date: Sat, 10 Nov 2007 13:51:26 +0100 [thread overview]
Message-ID: <20071110125126.GA7261@atjola.homenet> (raw)
In-Reply-To: <20071110123505.GA24445@bulgaria>
On 2007.11.10 04:35:05 -0800, Brian Swetland wrote:
> [Björn Steinbrink <B.Steinbrink@gmx.de>]
> > On 2007.11.10 02:14:20 -0800, Brian Swetland wrote:
> > >
> > > The example I have involves a coworker's name which needs non-ascii
> > > characters. They are properly escaped in the From: line generated by
> > > git-format-patch. git-send-email puts the generated From: line at the
> > > top of the body of the email, unescapes it (to utf-8), and proceeds to
> > > send the email with no Content-Type specified.
> >
> > You mean that it converts the header field to utf-8? It doesn't do that
> > here (neither master nor 1.5.3.5) and IIRC that would be invalid anyway,
> > because Content-Type applies to exactly that, content, not headers. Your
> > sample has no non-ASCII characters (or at least I didn't see any), so
> > git-send-email doesn't add a header to specify a charset.
>
> The first line of the patch is a From: field with Arve's name, in
> an (rfc822?) encoded format):
> From: =?utf-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= <arve@android.com>
>
> The mail generated by git-send-email makes this From: line the first
> line of the *body* of the generated email. This line in the body
> is no longer escaped, the utf8 characters are visible, but the header
> of the message does not have a Content-Type indicating a non-ascii
> encoding.
Ah! Commit author differs from mail sender, didn't think of that. That's
probably the same problem as with the -s option, ie. that git-send-email
only looks at the existing text and not add anything it adds itself when
checking the encoding. Sorry for the noise.
Björn
next prev parent reply other threads:[~2007-11-10 12:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-10 0:14 `git-send-email' doesn't specify `Content-Type' Ludovic Courtès
2007-11-10 0:52 ` Johannes Schindelin
2007-11-10 10:14 ` Brian Swetland
2007-11-10 12:25 ` Björn Steinbrink
2007-11-10 12:35 ` Brian Swetland
2007-11-10 12:51 ` Björn Steinbrink [this message]
2007-11-11 8:32 ` Jeff King
2007-11-11 8:35 ` Jeff King
2007-11-11 8:39 ` Brian Swetland
2007-11-11 8:41 ` Jeff King
2007-11-11 8:45 ` Brian Swetland
2007-11-11 8:51 ` Jeff King
2007-11-11 8:56 ` Jeff King
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=20071110125126.GA7261@atjola.homenet \
--to=b.steinbrink@gmx.de \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=ludo@chbouib.org \
--cc=swetland@google.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).