13c3bf146b390347cfdc85b6983f1c3b0f5b09ea
[mmh] / test / tests / spost / test-group
1 # test spost: Group Addresses
2
3 . "$MH_TEST_COMMON"
4
5
6 draft="$MH_TEST_DIR/spost-$$.draft"
7
8 profile="$MMH/profile-spost"
9 cd "$MMH"
10 cat "`mhparam profile`" - >"$profile" <<!
11 default-from: Bob <bob@example.org>
12 !
13 cd - >/dev/null
14 export MMHP="$profile"
15
16
17 # Group Recipients
18
19 cat >"$draft" <<!
20 To: Undisclosed recipients: Alice <alice@example.org>, Gill <gill@example.org>;
21 Date: Sun, 25 Oct 2015 18:59:56 +0100
22 Subject: Group Recipients
23 ----------------
24 foo
25 !
26
27 runandcheck 'spost -debug "$draft"' <<!
28 To: Undisclosed recipients: ;
29 Date: Sun, 25 Oct 2015 18:59:56 +0100
30 Subject: Group Recipients
31 From: Bob <bob@example.org>
32
33 foo
34 ----EOM----
35 alice@example.org
36 gill@example.org
37 !