From 1794d729c1c4b0de8f2e72b5096539c52ee6b74f Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Sun, 25 Oct 2015 19:38:33 +0100 Subject: [PATCH] Add test for sender header in spost (Fails currently, because default-from is not part of alternate-mailboxes.) --- test/tests/spost/test-spost | 187 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 test/tests/spost/test-spost 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 +! + + -- 1.7.10.4