Bug 1454: Option -oMm for message reference
[exim.git] / test / scripts / 4000-scanning / 4000
CommitLineData
59371ea7
PH
1# Basic exiscan feature tests
2echo ==> This test may take a bit of time, depending on exactly
3echo ==> how your SpamAssassin is configured.
4exim -odi -bs
5ehlo test.ex
6mail from:<>
7rcpt to:<userx@test.ex>
8data
9A message without any headers.
10.
11quit
12****
13exim -odi -bs
14ehlo test.ex
15mail from:<>
16rcpt to:<userx@test.ex>
17data
18From: Test person <tp@cam.ac.uk>
19To: Me <userx@test.ex>
20Subject: A real test message
21Date: Fri, 17 Dec 2004 16:13:04 +0100
22Message-ID: <41C2F849.3060203@projectile.test.ex>
23
24OK, this should look like a genuine message.
25.
26quit
27****
28exim -odi -bs
29ehlo test.ex
30mail from:<>
31rcpt to:<userx@test.ex>
32data
33From: 99Junk99@somewhere.com
34To:
35Subject: MAKE MONEY FAST!!!!
36Message-id: abcde
37
38This should be enough to trip the threshold.
39.
40quit
41****
42exim -odi -bs
43ehlo test.ex
44mail from:<>
45rcpt to:<userx@test.ex>
46data
47From: Test person <tp@cam.ac.uk>
48To: Me <userx@test.ex>
49Subject: A real test message
50Date: Fri, 17 Dec 2004 16:13:04 +0100
51Message-ID: <41C2F849.3060203@projectile.test.ex>
52FakeReject: test fakereject
53
54OK, this should look like a genuine message, but
55it will trip on THIS REGEX.
56.
57quit
58****
59exim -odi -bs
60ehlo test.ex
61mail from:<>
62rcpt to:<userx@test.ex>
63data
64Date: Fri, 17 Dec 2004 14:35:01 +0100
65From: J Caesar <jcaesar@test.ex>
66To: a-list00@exim.org
67Message-ID: <20041217133501.GA3058@test.ex>
68Mime-Version: 1.0
69Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR"
70Content-Disposition: inline
71Subject: [exim] Re: Bug#286074: eximstats: uses message count as data for
72 the "volume" charts
73X-BeenThere: a-list00@exim.org
74X-Mailman-Version: 2.1.5
75Precedence: list
76
d203e649
PH
77--T4sUOijqQbZv57TR
78Content-Type: text/plain; charset=US-ASCII
79Content-Transfer-Encoding: quoted-printable
80Content-Disposition: inline
81
82Test quoted-printable =3D
83Space at end of line=40
84Continued line =
85with this text.
86
59371ea7
PH
87--T4sUOijqQbZv57TR
88Content-Type: text/plain; charset=us-ascii
89Content-Disposition: inline
90
91There was a part of the patch missing, complete one is attached.
92 sorry for wasting your time
93
94--T4sUOijqQbZv57TR
95Content-Type: text/plain; charset=us-ascii
96Content-Disposition: attachment; filename=working-patch
97
98--- /usr/sbin/eximstats 2004-12-17 13:36:44.381983753 +0100
99+++ eximstats 2004-12-17 13:47:37.763185260 +0100
100@@ -1107,11 +1107,11 @@
101 if (scalar @chartdatanames < $ntopchart)
102 {
103 push(@chartdatanames, $key);
104- push(@chartdatavals, $$m_count{$key});
105+ push(@chartdatavals, $$m_data{$key});
106 }
107 else
108 {
109- $chartotherval += $$m_count{$key};
110+ $chartotherval += $$m_data{$key};
111 }
112 }
113 push(@chartdatanames, "Other");
114
115--T4sUOijqQbZv57TR
116Content-Type: text/plain; charset="us-ascii"
117MIME-Version: 1.0
118Content-Transfer-Encoding: 7bit
119Content-Disposition: inline
120
121--
122
123--T4sUOijqQbZv57TR--
124.
125quit
126****
127# Non-smtp message
128exim -odi userx@test.ex
129A message without any headers.
130.
131****
132# Non-smtp MIME message
133exim -odi userx@test.ex
134Date: Fri, 17 Dec 2004 14:35:01 +0100
135From: J Caesar <jcaesar@test.ex>
136To: a-list00@exim.org
137Message-ID: <20041217133501.GA3058@test.ex>
138Mime-Version: 1.0
139Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR"
140Content-Disposition: inline
141Subject: [exim] Re: Bug#286074: eximstats: uses message count as data for
142 the "volume" charts
143X-BeenThere: a-list00@exim.org
144X-Mailman-Version: 2.1.5
145Precedence: list
146
147--T4sUOijqQbZv57TR
148Content-Type: text/plain; charset=us-ascii
149Content-Disposition: inline
150
151There was a part of the patch missing, complete one is attached.
152 sorry for wasting your time
153
154--T4sUOijqQbZv57TR
155Content-Type: text/plain; charset=us-ascii
156Content-Disposition: attachment; filename=working-patch
157
158--- /usr/sbin/eximstats 2004-12-17 13:36:44.381983753 +0100
159+++ eximstats 2004-12-17 13:47:37.763185260 +0100
160@@ -1107,11 +1107,11 @@
161 if (scalar @chartdatanames < $ntopchart)
162 {
163 push(@chartdatanames, $key);
164- push(@chartdatavals, $$m_count{$key});
165+ push(@chartdatavals, $$m_data{$key});
166 }
167 else
168 {
169- $chartotherval += $$m_count{$key};
170+ $chartotherval += $$m_data{$key};
171 }
172 }
173 push(@chartdatanames, "Other");
174
175--T4sUOijqQbZv57TR
176Content-Type: text/plain; charset="us-ascii"
177MIME-Version: 1.0
178Content-Transfer-Encoding: 7bit
179Content-Disposition: inline
180
181--
182
183--T4sUOijqQbZv57TR--
184****
185exim -odi -bs
186ehlo test.ex
187mail from:<>
188rcpt to:<userx@test.ex>
189data
190From: Test person <tp@cam.ac.uk>
191To: Me <userx@test.ex>
192Subject: A real test message
193Date: Fri, 17 Dec 2004 16:13:04 +0100
194Message-ID: <41C2F849.3060203@projectile.test.ex>
195FakeDefer: test fakedefer
196
197OK, this should look like a genuine message, but
198it will trip on THIS REGEX.
199.
200quit
201****
202# Very simple virus test
203exim -odi -bs
204mail from:<>
205rcpt to:<userx@test.ex>
206data
207Subject: a virus test
208
209X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
210.
211quit
212****