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>
This commit is contained in:
Jeff King 2007-11-20 07:54:04 -05:00 коммит произвёл Junio C Hamano
Родитель 97e92e2cbc
Коммит 8641ee3dcb
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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';
}
}
}