Logging: convert an internal element from static to allocated buffer
[exim.git] / test / scripts / 4000-scanning / 4003
1 # content scan interface: spamassassin
2 #
3 # The spooled file for scanning includes the test-runner's user name
4 # hence size varies.  Munge that.
5 munge scanfile_size
6 #
7 #
8 # A good-comms test, returning not-spam.
9 # (we could use a second one that returns is-spam...)
10 server 7833
11 <REPORT SPAMC
12 <User:
13 <Content-length:
14 <
15 <From
16 <X-Envelope-From
17 <X-Envelope-To
18 <Received:
19 <       by
20 <       (envelope
21 <       id
22 <       for
23 <       
24 <Content-type: text/plain
25 <Message-Id:
26 <From:
27 <Date:
28 <
29 <test
30 >SPAMD/1.1 0 EX_OK
31 >Spam: False ; 4.5 / 5.0
32 >
33 >Spam detection software, running on the system "demo",
34 >has NOT identified this incoming email as spam.  The original
35 >message has been attached to this so you can view it or label
36 >similar future email.  If you have any questions, see
37 >@@CONTACT_ADDRESS@@ for details.
38 >
39 >Content preview:  test [...]
40 >
41 >Content analysis details:   (4.5 points, 5.0 required)
42 >
43 > pts rule name              description
44 >---- ---------------------- --------------------------------------------------
45 >-1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
46 > 1.2 MISSING_HEADERS        Missing To: header
47 > 1.0 MISSING_FROM           Missing From: header
48 > 1.8 MISSING_SUBJECT        Missing Subject: header
49 > 1.4 MISSING_DATE           Missing Date: header
50 > 0.1 MISSING_MID            Missing Message-Id: header
51 >
52 *eof
53 ****
54 exim -odi -oMt fromuser -bs
55 ehlo test.ex
56 mail from:<fromuser@myhost.test.ex>
57 rcpt to:<userx@test.ex>
58 data
59 Content-type: text/plain
60
61 test
62 .
63 quit
64 ****
65 #
66 #
67 #
68 #
69 # Server spec line with timeout option, not exercised
70 # (could we cut down the massive content?)
71 server 7833
72 <REPORT SPAMC
73 <User:
74 <Content-length:
75 <
76 <From
77 <X-Envelope-From
78 <X-Envelope-To
79 <Received:
80 <       by
81 <       (envelope
82 <       id
83 <       for
84 <       
85 <Content-type: text/plain
86 <Message-Id:
87 <From:
88 <Date:
89 <
90 <test
91 >SPAMD/1.1 0 EX_OK
92 >Spam: False ; 4.5 / 5.0
93 >
94 >Spam detection software, running on the system "demo",
95 >has NOT identified this incoming email as spam.  The original
96 >message has been attached to this so you can view it or label
97 >similar future email.  If you have any questions, see
98 >@@CONTACT_ADDRESS@@ for details.
99 >
100 >Content preview:  test [...]
101 >
102 >Content analysis details:   (4.5 points, 5.0 required)
103 >
104 > pts rule name              description
105 >---- ---------------------- --------------------------------------------------
106 >-1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
107 > 1.2 MISSING_HEADERS        Missing To: header
108 > 1.0 MISSING_FROM           Missing From: header
109 > 1.8 MISSING_SUBJECT        Missing Subject: header
110 > 1.4 MISSING_DATE           Missing Date: header
111 > 0.1 MISSING_MID            Missing Message-Id: header
112 >
113 *eof
114 ****
115 exim -odi -oMt fromuser -bs -DOPT='127.0.0.1 7833 retry=10s'
116 ehlo test.ex
117 mail from:<fromuser@myhost.test.ex>
118 rcpt to:<userx@test.ex>
119 data
120 Content-type: text/plain
121
122 test
123 .
124 quit
125 ****
126 #
127 #
128 #
129 # Server spec line with timeout option, exercised
130 server -i 2 7833
131 <REPORT SPAMC
132 <User:
133 <Content-length:
134 <
135 <From
136 <X-Envelope-From
137 <X-Envelope-To
138 <Received:
139 <       by
140 <       (envelope
141 <       id
142 <       for
143 <       
144 <Content-type: text/plain
145 <Message-Id:
146 <From:
147 <Date:
148 <
149 <test
150 >SPAMD/1.1 0 EX_OK
151 >Spam: False ; 4.5 / 5.0
152 >
153 >Spam detection software, running on the system "demo",
154 >has NOT identified this incoming email as spam.  The original
155 >message has been attached to this so you can view it or label
156 >similar future email.  If you have any questions, see
157 >@@CONTACT_ADDRESS@@ for details.
158 >
159 >Content preview:  test [...]
160 >
161 >Content analysis details:   (4.5 points, 5.0 required)
162 >
163 > pts rule name              description
164 >---- ---------------------- --------------------------------------------------
165 >-1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
166 > 1.2 MISSING_HEADERS        Missing To: header
167 > 1.0 MISSING_FROM           Missing From: header
168 > 1.8 MISSING_SUBJECT        Missing Subject: header
169 > 1.4 MISSING_DATE           Missing Date: header
170 > 0.1 MISSING_MID            Missing Message-Id: header
171 >
172 *eof
173 ****
174 exim -odi -oMt fromuser -bs -DOPT='127.0.0.1 7833 retry=4s'
175 ehlo test.ex
176 mail from:<fromuser@myhost.test.ex>
177 rcpt to:<userx@test.ex>
178 data
179 Content-type: text/plain
180
181 test
182 .
183 quit
184 ****
185 #
186 #
187 #
188 # Multiple servers, prioritised, with timeout spec; first one fails
189 # List separator changed
190 server 7833
191 <REPORT SPAMC
192 <User:
193 <Content-length:
194 <
195 <From
196 <X-Envelope-From
197 <X-Envelope-To
198 <Received:
199 <       by
200 <       (envelope
201 <       id
202 <       for
203 <       
204 <Content-type: text/plain
205 <Message-Id:
206 <From:
207 <Date:
208 <
209 <test
210 >SPAMD/1.1 0 EX_OK
211 >Spam: False ; 4.5 / 5.0
212 >
213 >Spam detection software, running on the system "demo",
214 >has NOT identified this incoming email as spam.  The original
215 >message has been attached to this so you can view it or label
216 >similar future email.  If you have any questions, see
217 >@@CONTACT_ADDRESS@@ for details.
218 >
219 >Content preview:  test [...]
220 >
221 >Content analysis details:   (4.5 points, 5.0 required)
222 >
223 > pts rule name              description
224 >---- ---------------------- --------------------------------------------------
225 >-1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
226 > 1.2 MISSING_HEADERS        Missing To: header
227 > 1.0 MISSING_FROM           Missing From: header
228 > 1.8 MISSING_SUBJECT        Missing Subject: header
229 > 1.4 MISSING_DATE           Missing Date: header
230 > 0.1 MISSING_MID            Missing Message-Id: header
231 >
232 *eof
233 ****
234 exim -odi -oMt fromuser -bs -DOPT='<; 127.0.0.1 7833 ; HOSTIPV4 7834 pri=2 tmo=2s'
235 ehlo test.ex
236 mail from:<fromuser@myhost.test.ex>
237 rcpt to:<userx@test.ex>
238 data
239 Content-type: text/plain
240
241 test
242 .
243 quit
244 ****
245 #
246 #