diff options
author | 2019-04-25 16:41:25 +0900 | |
---|---|---|
committer | 2019-04-25 16:41:25 +0900 | |
commit | 5983ddc165221c3ec2a4299b65cfb2ecc1ce7765 (patch) | |
tree | f8ac350fed66a1d195487819d971264e48779c66 /t | |
parent | Merge branch 'nd/submodule-foreach-quiet' (diff) | |
parent | send-email: default to quoted-printable when CR is present (diff) | |
download | tgif-5983ddc165221c3ec2a4299b65cfb2ecc1ce7765.tar.xz |
Merge branch 'bc/send-email-qp-cr'
"git send-email" has been taught to use quoted-printable when the
payload contains carriage-return. The use of the mechanism is in
line with the design originally added the codepath that chooses QP
when the payload has overly long lines.
* bc/send-email-qp-cr:
send-email: default to quoted-printable when CR is present
Diffstat (limited to 't')
-rwxr-xr-x | t/t9001-send-email.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index ee1efcc59d..1e3ac3c384 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -481,6 +481,20 @@ test_expect_success $PREREQ 'long lines with auto encoding are quoted-printable' grep "Content-Transfer-Encoding: quoted-printable" msgtxt1 ' +test_expect_success $PREREQ 'carriage returns with auto encoding are quoted-printable' ' + clean_fake_sendmail && + cp $patches cr.patch && + printf "this is a line\r\n" >>cr.patch && + git send-email \ + --from="Example <nobody@example.com>" \ + --to=nobody@example.com \ + --smtp-server="$(pwd)/fake.sendmail" \ + --transfer-encoding=auto \ + --no-validate \ + cr.patch && + grep "Content-Transfer-Encoding: quoted-printable" msgtxt1 +' + for enc in auto quoted-printable base64 do test_expect_success $PREREQ "--validate passes with encoding $enc" ' |