Merge branch 'nd/imap-send-typofix'
[gitweb.git] / t / t9001-send-email.sh
index 1ef1a19003db5c9be94197e9d6cb25110591705b..ee1efcc59dcddfdb7e1b448999531e2c1937444a 100755 (executable)
@@ -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' '