]> diplodocus.org Git - nmh/blobdiff - test/mhbuild/test-cte
Still more CTE tests to cover (hopefully) all of tbe base64 cases.
[nmh] / test / mhbuild / test-cte
index 3ffc135e580739636a9374c36219d167e40aae86..dfa6535b70b0cb43af650145838bf4bb67183d1b 100755 (executable)
@@ -202,4 +202,36 @@ EOF
 
 check "$draft" "$expected"
 
 
 check "$draft" "$expected"
 
+cat > "$draft" <<EOF
+To: Mr Test <mrtest@example.com>
+cc:
+Fcc: +outbox
+------
+#<text/plain *b64
+This is a test of a mëssäge with a shørt line.
+
+
+This is a second 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
+
+VGhpcyBpcyBhIHRlc3Qgb2YgYSBtw6tzc8OkZ2Ugd2l0aCBhIHNow7hydCBsaW5lLg0KDQoNClRo
+aXMgaXMgYSBzZWNvbmQgbGluZS4NCg0KDQoNCg0K
+EOF
+
+check "$draft" "$expected"
+
 exit ${failed:-0}
 exit ${failed:-0}