From ce96b206f69380c42849be06a708796ee94a1e5e Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Sat, 6 Aug 2016 18:08:58 +0200 Subject: [PATCH] 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. --- test/tests/send/test-mimeify | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 test/tests/send/test-mimeify 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 +! -- 1.7.10.4