From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: [PATCH] CMIT_FMT_EMAIL: Q-encode Subject: and display-name part of From: fields.
Date: Tue, 16 May 2006 12:38:37 +0200 [thread overview]
Message-ID: <e4ca2p$ud5$1@sea.gmane.org> (raw)
In-Reply-To: 7vmzdi9ssv.fsf@assigned-by-dhcp.cox.net
Junio C Hamano wrote:
> By convention, the commit message and the author/committer names
> in the commit objects are UTF-8 encoded. When formatting for
> e-mails, Q-encode them according to RFC 2047.
>
> While we are at it, generate the content-type and
> content-transfer-encoding headers as well.
>
> Signed-off-by: Junio C Hamano <junkio@cox.net>
>
> ---
>
> With this patch, the output formatted with
>
> git show --pretty=email --patch-with-stat 9d7f73d4
>
> would start like this:
>
> From 9d7f73d43fa49d0d2f5a8cfcce9d659e8ad2d265 Thu Apr 7 15:13:13 2005
> From: =?utf-8?q?Lukas_Sandstr=C3=B6m?= <lukass@etek.chalmers.se>
> Date: Sat, 25 Feb 2006 12:20:13 +0100
> Subject: [PATCH] git-fetch: print the new and old ref when fast-forwarding
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
I guess that we also need
MIME-Version: 1.0
(from what I remember of troubles with Eoutlook Express not sending all
the required headers, and tin not working properly).
If I remember correctly encoding headers using quoted-printable is needed
only because headers are before charset is set. IIRC there was proposal
to use UTF-8 for headers regardless of the charset used for body of message.
P.S. Should we set User-Agent header as well?
--
Jakub Narebski
Warsaw, Poland
next prev parent reply other threads:[~2006-05-16 10:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-16 10:18 [PATCH] CMIT_FMT_EMAIL: Q-encode Subject: and display-name part of From: fields Junio C Hamano
2006-05-16 10:38 ` Jakub Narebski [this message]
2006-05-16 10:49 ` Rocco Rutte
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='e4ca2p$ud5$1@sea.gmane.org' \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
/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