@matheusbsbs / matheus-bagliano / commits / 8641ee3dcb
Fork 0

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>

Jeff King committed Nov 20, 2007 at 07:54 UTC 8641ee3dcbae749c42b7cf117ba3050e2cb95a93
1 file changed +2 -1
git-send-email.perl
+2 -1
@@ -711,7 +711,8 @@ foreach my $t (@files) {
711 else {
712 push @xh,
713 'MIME-Version: 1.0',
714 - "Content-Type: text/plain; charset=$author_encoding";
714 + "Content-Type: text/plain; charset=$author_encoding",
715 + 'Content-Transfer-Encoding: 8bit';
716 }
717 }
718 }