summaryrefslogtreecommitdiff
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-11-13 13:37:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-13 13:37:25 (GMT)
commit2281aa872154af4cc10a05b09c79a1d41169111d (patch)
treecba0800a79e1347b1d02fef47538d429c421f1d1 /t/t9001-send-email.sh
parent291123e69babcbbab720705a1bc1e6f0ba3012a4 (diff)
parent3c88e46f1a4328f594cbdcd6109034d9fb9a1b56 (diff)
downloadgit-2281aa872154af4cc10a05b09c79a1d41169111d.zip
git-2281aa872154af4cc10a05b09c79a1d41169111d.tar.gz
git-2281aa872154af4cc10a05b09c79a1d41169111d.tar.bz2
Merge branch 'al/send-email-auto-cte-fixup'
"git send-email --transfer-encoding=..." in recent versions of Git sometimes produced an empty "Content-Transfer-Encoding:" header, which has been corrected. * al/send-email-auto-cte-fixup: send-email: avoid empty transfer encoding header
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-xt/t9001-send-email.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index 1ef1a19..ee1efcc 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -492,6 +492,21 @@ do
--validate \
$patches longline.patch
'
+
+done
+
+for enc in 7bit 8bit quoted-printable base64
+do
+ test_expect_success $PREREQ "--transfer-encoding=$enc produces correct header" '
+ clean_fake_sendmail &&
+ git send-email \
+ --from="Example <nobody@example.com>" \
+ --to=nobody@example.com \
+ --smtp-server="$(pwd)/fake.sendmail" \
+ --transfer-encoding=$enc \
+ $patches &&
+ grep "Content-Transfer-Encoding: $enc" msgtxt1
+ '
done
test_expect_success $PREREQ 'Invalid In-Reply-To' '