]> diplodocus.org Git - nmh/commitdiff
add new test for 'mhbuild -check'
authorPaul Fox <pgf@foxharp.boston.ma.us>
Thu, 8 May 2014 16:42:10 +0000 (12:42 -0400)
committerPaul Fox <pgf@foxharp.boston.ma.us>
Thu, 8 May 2014 16:54:05 +0000 (12:54 -0400)
test/mhbuild/test-attach
test/mhbuild/textplain [new file with mode: 0644]

index f356e491e16f8a6e06353054fd1d81438160e67b..f51d2bc34129c7ed37374420825863627adfb257 100755 (executable)
@@ -148,6 +148,36 @@ MIME-Version: 1.0
 Content-Type: text/plain
 EOF
 
+#
+# Check an md5'd attachment
+#
+
+cat > "$draft" <<EOF
+To: Mr Test <mrtest@example.com>
+cc:
+Fcc: +outbox
+Subject: Test of digested part
+
+#text/plain; name="textplain" [ - ] ${srcdir}/test/mhbuild/textplain
+
+EOF
+
+mhbuild -check "$draft"
+
+cat > "$expected" <<EOF
+To: Mr Test <mrtest@example.com>
+cc:
+Fcc: +outbox
+Subject: Test of digested part
+MIME-Version: 1.0
+Content-Type: text/plain; name="textplain"; charset="us-ascii"
+Content-Description:  - 
+Content-MD5: x3hNJn10cGowZv+ILUkycw==
+Content-Transfer-Encoding: quoted-printable
+
+This is a text/plain part.
+EOF
+
 check "$draft" "$expected"
 
 #
diff --git a/test/mhbuild/textplain b/test/mhbuild/textplain
new file mode 100644 (file)
index 0000000..d3dc48e
--- /dev/null
@@ -0,0 +1 @@
+This is a text/plain part.