1 # test spost: Group Addresses
6 draft="$MH_TEST_DIR/spost-$$.draft"
8 profile="$MMH/profile-spost"
10 cat "`mhparam profile`" - >"$profile" <<!
11 default-from: Bob <bob@example.org>
14 export MMHP="$profile"
21 To: Undisclosed recipients: Alice <alice@example.org>,
22 Gill <gill@example.org>;
23 Date: Sun, 25 Oct 2015 18:59:56 +0100
24 Subject: Group Recipients
29 runandcheck 'spost -debug "$draft"' <<!
30 To: Undisclosed recipients: ;
31 Date: Sun, 25 Oct 2015 18:59:56 +0100
32 Subject: Group Recipients
33 From: Bob <bob@example.org>
44 To: charly@example.net
45 Cc: friends: alice@example.org, Gill <gill@example.org>;
46 Date: Sun, 25 Oct 2015 18:59:56 +0100
52 runandcheck 'spost -debug "$draft"' <<!
53 To: charly@example.net
55 Date: Sun, 25 Oct 2015 18:59:56 +0100
57 From: Bob <bob@example.org>
69 To: charly@example.net
70 Cc: friends: alice@example.org, Gill <gill@example.org>
71 Date: Sun, 25 Oct 2015 18:59:56 +0100
72 Subject: No semicolon at the end of the group
77 runandcheck 'spost -debug "$draft"' <<!
78 To: charly@example.net
80 Date: Sun, 25 Oct 2015 18:59:56 +0100
81 Subject: No semicolon at the end of the group
82 From: Bob <bob@example.org>
94 To: friends: Alice <alice@example.org>, Gill <gill@example.org>;,
96 Date: Sun, 25 Oct 2015 18:59:56 +0100
97 Subject: Group plus address with comma
102 runandcheck 'spost -debug "$draft"' <<!
103 To: friends: ;, charly@example.net
104 Date: Sun, 25 Oct 2015 18:59:56 +0100
105 Subject: Group plus address with comma
106 From: Bob <bob@example.org>
118 To: friends: Alice <alice@example.org>, Gill <gill@example.org>;
120 Date: Sun, 25 Oct 2015 18:59:56 +0100
121 Subject: Group plus address, no comma
126 runandcheck 'spost -debug "$draft"' <<!
127 To: friends: ;, charly@example.net
128 Date: Sun, 25 Oct 2015 18:59:56 +0100
129 Subject: Group plus address, no comma
130 From: Bob <bob@example.org>
143 Date: Sun, 25 Oct 2015 18:59:56 +0100
144 Subject: One word with a colon inside
149 runandcheck 'spost -debug "$draft"' <<!
151 Date: Sun, 25 Oct 2015 18:59:56 +0100
152 Subject: One word with a colon inside
153 From: Bob <bob@example.org>
164 Dcc: friends: Alice <alice@example.org>, Gill <gill@example.org>;
165 Date: Sun, 25 Oct 2015 18:59:56 +0100
166 Subject: Group in Dcc
171 runandcheck 'spost -debug "$draft"' <<!
173 Date: Sun, 25 Oct 2015 18:59:56 +0100
174 Subject: Group in Dcc
175 From: Bob <bob@example.org>