]> diplodocus.org Git - nmh/commitdiff
Add a new base64 CTE test.
authorKen Hornstein <kenh@pobox.com>
Tue, 4 Feb 2014 16:49:49 +0000 (11:49 -0500)
committerKen Hornstein <kenh@pobox.com>
Tue, 4 Feb 2014 16:49:49 +0000 (11:49 -0500)
test/mhbuild/test-cte

index e3f151a..128526a 100755 (executable)
@@ -45,6 +45,32 @@ Content-Transfer-Encoding: quoted-printable
 This is a test of a message with a sh=C3=B8rt line.
 EOF
 
+#
+# Force some text to be base64
+#
+
+cat > "$draft" <<EOF
+To: Mr Test <mrtest@example.com>
+cc:
+Fcc: +outbox
+------
+#<text/plain *b64
+This is a test of a message with a shørt line.
+EOF
+
+run_prog mhbuild "$draft"
+
+cat > "$expected" <<EOF
+To: Mr Test <mrtest@example.com>
+cc:
+Fcc: +outbox
+MIME-Version: 1.0
+Content-Type: text/plain; charset="UTF-8"
+Content-Transfer-Encoding: base64
+
+VGhpcyBpcyBhIHRlc3Qgb2YgYSBtZXNzYWdlIHdpdGggYSBzaMO4cnQgbGluZS4NCg==
+EOF
+
 check "$draft" "$expected"
 
 exit ${failed:-0}