From: Philipp Takacs Date: Sat, 6 Aug 2016 16:08:58 +0000 (+0200) Subject: Test if MIME creation works X-Git-Tag: mmh-0.3~13 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=ce96b206f69380c42849be06a708796ee94a1e5e;p=mmh Test if MIME creation works Test if send uses mhbuild only, if it is usefull. A message already in MIME-Formate should not cause a fail. --- diff --git a/test/tests/send/test-mimeify b/test/tests/send/test-mimeify new file mode 100644 index 0000000..96e2418 --- /dev/null +++ b/test/tests/send/test-mimeify @@ -0,0 +1,62 @@ +#Test if MIME convertion work + +. "$MH_TEST_COMMON" + +draft="$MH_TEST_DIR/send-$$.draft" + +profile="$MMH/profile-send" +cd "$MMH" +cat "`mhparam profile`" - >"$profile" < +! +cd - >/dev/null +export MMHP="$profile" + +cat >"$draft" < +To: alice +Date: Sun, 25 Oct 2015 18:59:56 +0100 +Subject: Test MIME +---------------- +foo +! + +runandcheck 'send -debug "$draft" | sed "/^Content-ID/s/:.*/: /"' < +To: alice +Date: Sun, 25 Oct 2015 18:59:56 +0100 +Subject: Test MIME +MIME-Version: 1.0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: + +foo +----EOM---- +alice +! + +cat >"$draft" < +To: alice +Date: Sun, 25 Oct 2015 18:59:56 +0100 +Subject: Test MIME +MIME-Version: 1.0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: +---------------- +foo +! + +runandcheck 'send -debug "$draft"' < +To: alice +Date: Sun, 25 Oct 2015 18:59:56 +0100 +Subject: Test MIME +MIME-Version: 1.0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: + +foo +----EOM---- +alice +!