From: markus schnalke Date: Sun, 25 Oct 2015 18:38:33 +0000 (+0100) Subject: Add test for sender header in spost X-Git-Tag: mmh-0.2-RC1~9 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=1794d729c1c4b0de8f2e72b5096539c52ee6b74f;p=mmh Add test for sender header in spost (Fails currently, because default-from is not part of alternate-mailboxes.) --- diff --git a/test/tests/spost/test-spost b/test/tests/spost/test-spost new file mode 100644 index 0000000..ff8399f --- /dev/null +++ b/test/tests/spost/test-spost @@ -0,0 +1,187 @@ +# test spost: sender header + +. "$MH_TEST_COMMON" + +profile="$MMH/profile-spost" +cd "$MMH" +cat "`mhparam profile`" - >"$profile" < +alternate-mailboxes: ziggy@example.net, walther@example.net +! +cd - +export MMHP="$profile" + +draft="$MH_TEST_DIR/spost-$$.draft" + + + +# no from header + +cat >"$draft" < + +foo +----EOM---- +alice +! + + + +# single from addr (my default one) + +cat >"$draft" <"$draft" <"$draft" < + +foo +----EOM---- +alice +! + + + +# multiple from addrs (including my default addr) + +cat >"$draft" < + +foo +----EOM---- +alice +! + + + +# multiple from addrs (including my alternate addr) + +cat >"$draft" <"$draft" < + +foo +----EOM---- +alice +! + +