DCC contains invisible (not visible) recipients
[mmh] / test / tests / spost / test-bcc-dcc
1 # test spost: bcc and dcc headers
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 -
14 export MMHP="$profile"
15
16
17 # to + cc headers
18
19 cat >"$draft" <<!
20 To: alice, gill
21 Cc: jack, charly
22 Date: Sun, 25 Oct 2015 18:59:56 +0100
23 Subject: to and cc
24 ----------------
25 foo
26 !
27
28 runandcheck 'spost -debug "$draft"' <<!
29 To: alice, gill
30 Cc: jack, charly
31 Date: Sun, 25 Oct 2015 18:59:56 +0100
32 Subject: to and cc
33 From: Bob <bob@example.org>
34
35 foo
36 ----EOM----
37 jack
38 charly
39 alice
40 gill
41 !
42
43
44
45 # to + bcc headers
46
47 cat >"$draft" <<!
48 To: alice
49 Bcc: john, paul, george, ringo
50 Date: Sun, 25 Oct 2015 18:59:56 +0100
51 Subject: to and bcc
52 ----------------
53 foo
54 !
55
56 runandcheck 'spost -debug "$draft"' <<!
57 To: alice
58 Date: Sun, 25 Oct 2015 18:59:56 +0100
59 Subject: to and bcc
60 From: Bob <bob@example.org>
61
62 foo
63 ----EOM----
64 alice
65 !
66
67
68
69
70
71 # only bcc headers
72
73 cat >"$draft" <<!
74 Bcc: john, paul, george, ringo
75 Date: Sun, 25 Oct 2015 18:59:56 +0100
76 Subject: only bcc
77 ----------------
78 foo
79 !
80
81 runandcheck 'spost -debug "$draft"' <<!
82 Date: Sun, 25 Oct 2015 18:59:56 +0100
83 Subject: only bcc
84 From: Bob <bob@example.org>
85 Bcc: undisclosed-recipients:;
86
87 foo
88 ----EOM----
89 !
90
91
92
93
94 # to + dcc headers
95
96 cat >"$draft" <<!
97 To: alice
98 Dcc: john, paul, george, ringo
99 Date: Sun, 25 Oct 2015 18:59:56 +0100
100 Subject: to and dcc
101 ----------------
102 foo
103 !
104
105 runandcheck 'spost -debug "$draft"' <<!
106 To: alice
107 Date: Sun, 25 Oct 2015 18:59:56 +0100
108 Subject: to and dcc
109 From: Bob <bob@example.org>
110
111 foo
112 ----EOM----
113 john
114 paul
115 george
116 ringo
117 alice
118 !
119
120
121
122 # only dcc headers
123
124 cat >"$draft" <<!
125 Dcc: john, paul, george, ringo
126 Date: Sun, 25 Oct 2015 18:59:56 +0100
127 Subject: only dcc
128 ----------------
129 foo
130 !
131
132 runandcheck 'spost -debug "$draft"' <<!
133 Date: Sun, 25 Oct 2015 18:59:56 +0100
134 Subject: only dcc
135 From: Bob <bob@example.org>
136 Bcc: undisclosed-recipients:;
137
138 foo
139 ----EOM----
140 john
141 paul
142 george
143 ringo
144 !
145