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