1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
# test spost: bcc and dcc headers
. "$MH_TEST_COMMON"
draft="$MH_TEST_DIR/spost-$$.draft"
alias="$MH_TEST_DIR/spost-$$.alias"
profile="$MMH/profile-spost"
cd "$MMH"
cat "`mhparam profile`" - >"$profile" <<!
default-from: Bob <bob@example.org>
Aliasfile: $alias
!
cd - >/dev/null
export MMHP="$profile"
cat > "$alias" <<!
alice: Alice <alice@example.com>
bob: Bob <bob@example.org>
!
# to + cc headers
cat >"$draft" <<!
From: bob
To: alice
Date: Sun, 25 Oct 2015 18:59:56 +0100
Subject: Test alias in to and from
----------------
foo
!
runandcheck 'spost -debug "$draft"' <<!
From: Bob <bob@example.org>
To: Alice <alice@example.com>
Date: Sun, 25 Oct 2015 18:59:56 +0100
Subject: Test alias in to and from
foo
----EOM----
alice@example.com
!
|