Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-11-20 15:54:04 +0300
committerJunio C Hamano <gitster@pobox.com>2007-11-21 09:58:53 +0300
commit8641ee3dcbae749c42b7cf117ba3050e2cb95a93 (patch)
tree76d0dd43135a93a48db84681f91df40c8af926d5 /git-send-email.perl
parent97e92e2cbca3dc850d8b04b30740be8d81c17552 (diff)
send-email: add transfer encoding header with content-type
We add the content-type header only when we have non-7bit characters from the 'From' header, so we really need to specify the encoding (in other cases, where the commit text needed a content-type, git-format-patch will already have added the encoding header). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 2b1f1b598c..b03297c9d7 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -711,7 +711,8 @@ foreach my $t (@files) {
else {
push @xh,
'MIME-Version: 1.0',
- "Content-Type: text/plain; charset=$author_encoding";
+ "Content-Type: text/plain; charset=$author_encoding",
+ 'Content-Transfer-Encoding: 8bit';
}
}
}