From: Paul Fox Date: Thu, 8 May 2014 16:42:10 +0000 (-0400) Subject: add new test for 'mhbuild -check' X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/a1dac9c9d05f7660d30a69bbbaaac34ec6c86e8d?ds=sidebyside;hp=fd9489252d1383a388e7c4628557d0b1aaee91d9 add new test for 'mhbuild -check' --- diff --git a/test/mhbuild/test-attach b/test/mhbuild/test-attach index f356e491..f51d2bc3 100755 --- a/test/mhbuild/test-attach +++ b/test/mhbuild/test-attach @@ -148,6 +148,36 @@ MIME-Version: 1.0 Content-Type: text/plain EOF +# +# Check an md5'd attachment +# + +cat > "$draft" < +cc: +Fcc: +outbox +Subject: Test of digested part + +#text/plain; name="textplain" [ - ] ${srcdir}/test/mhbuild/textplain + +EOF + +mhbuild -check "$draft" + +cat > "$expected" < +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 index 00000000..d3dc48e3 --- /dev/null +++ b/test/mhbuild/textplain @@ -0,0 +1 @@ +This is a text/plain part.