1 # test spost: sender header
5 profile="$MMH/profile-spost"
7 cat "`mhparam profile`" - >"$profile" <<!
8 default-from: Bob <bob@example.org>
9 alternate-mailboxes: ziggy@example.net, walther@example.net
12 export MMHP="$profile"
14 draft="$MH_TEST_DIR/spost-$$.draft"
22 Date: Sun, 25 Oct 2015 18:59:56 +0100
23 Subject: no from header
28 runandcheck 'spost -debug "$draft"' <<!
30 Date: Sun, 25 Oct 2015 18:59:56 +0100
31 Subject: no from header
32 From: Bob <bob@example.org>
41 # single from addr (my default one)
46 Date: Sun, 25 Oct 2015 18:59:56 +0100
47 Subject: single from addr (my default one)
52 runandcheck 'spost -debug "$draft"' <<!
55 Date: Sun, 25 Oct 2015 18:59:56 +0100
56 Subject: single from addr (my default one)
65 # single from addr (my alternate one)
68 From: walther@example.net
70 Date: Sun, 25 Oct 2015 18:59:56 +0100
71 Subject: single from addr (my alternate one)
76 runandcheck 'spost -debug "$draft"' <<!
77 From: walther@example.net
79 Date: Sun, 25 Oct 2015 18:59:56 +0100
80 Subject: single from addr (my alternate one)
89 # single from addr (a foreign one)
94 Date: Sun, 25 Oct 2015 18:59:56 +0100
95 Subject: single from addr (a foreign one)
100 runandcheck 'spost -debug "$draft"' <<!
103 Date: Sun, 25 Oct 2015 18:59:56 +0100
104 Subject: single from addr (a foreign one)
105 Sender: Bob <bob@example.org>
114 # multiple from addrs (including my default addr)
117 From: bob@example.org, charly, jack
119 Date: Sun, 25 Oct 2015 18:59:56 +0100
120 Subject: multiple from addrs (including my default addr)
125 runandcheck 'spost -debug "$draft"' <<!
126 From: bob@example.org, charly, jack
128 Date: Sun, 25 Oct 2015 18:59:56 +0100
129 Subject: multiple from addrs (including my default addr)
130 Sender: bob@example.org
139 # multiple from addrs (including my alternate addr)
142 From: charly, jack, walther@example.net
144 Date: Sun, 25 Oct 2015 18:59:56 +0100
145 Subject: multiple from addrs (including my alternate addr)
150 runandcheck 'spost -debug "$draft"' <<!
151 From: charly, jack, walther@example.net
153 Date: Sun, 25 Oct 2015 18:59:56 +0100
154 Subject: multiple from addrs (including my alternate addr)
155 Sender: walther@example.net
164 # multiple from addrs (all foreign)
167 From: charly, jack, gill
169 Date: Sun, 25 Oct 2015 18:59:56 +0100
170 Subject: multiple from addrs (all foreign)
175 runandcheck 'spost -debug "$draft"' <<!
176 From: charly, jack, gill
178 Date: Sun, 25 Oct 2015 18:59:56 +0100
179 Subject: multiple from addrs (all foreign)
180 Sender: Bob <bob@example.org>