X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e4f6d48f7af4db62523d5351e2cf2849caa6ce54..7e3c7e296c778c8f2829cf08d83608f1d9de80d6:/test/mhbuild/test-attach?ds=sidebyside diff --git a/test/mhbuild/test-attach b/test/mhbuild/test-attach index 8bd3a64e..4eacc6e9 100755 --- a/test/mhbuild/test-attach +++ b/test/mhbuild/test-attach @@ -19,7 +19,7 @@ expected="$MH_TEST_DIR/$$.expected" actual="$MH_TEST_DIR/$$.actual" # -# Test out a simple draft +# Test out a simple draft, one part. # cat > "$draft" < "$actual" < +cc: +Fcc: +outbox +MIME-Version: 1.0 +Content-Type: image/jpeg; name="tiny.jpg" +Content-Description: tiny.jpg +Content-Disposition: attachment; filename="tiny.jpg" +Content-Transfer-Encoding: base64 + +/9g= +EOF + +check "$draft" "$actual" + +# +# Check out more common case, one (or more) attachments +# along with message text. +# + +cat > "$draft" < +cc: +Fcc: +outbox +Attach: ${srcdir}/test/mhbuild/tiny.jpg +------ +This is a test +EOF + +mhbuild "$draft" + +cat "$draft" + +# +# Two parts, one attachment +# -exit $failed +exit ${failed:-0}