X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1776330d10566166731f7938d28a7bf057381a53..bf989a8c437e2b510e6e02099514ae3cc1e6c2c8:/test/mhbuild/test-attach 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" #