summaryrefslogtreecommitdiff
path: root/test/scripts/4000-scanning/4000
blob: 6f66b27ae50e832830682cc99e1bd35e619693de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# Basic exiscan feature tests
echo ==> This test may take a bit of time, depending on exactly
echo ==> how your SpamAssassin is configured.
exim -odi -bs
ehlo test.ex
mail from:<>
rcpt to:<userx@test.ex>
data
A message without any headers.
.
quit
****
exim -odi -bs
ehlo test.ex
mail from:<>
rcpt to:<userx@test.ex>
data
From: Test person <tp@cam.ac.uk>
To: Me <userx@test.ex>
Subject: A real test message
Date: Fri, 17 Dec 2004 16:13:04 +0100
Message-ID: <41C2F849.3060203@projectile.test.ex>

OK, this should look like a genuine message.
.
quit
****
exim -odi -bs
ehlo test.ex
mail from:<>
rcpt to:<userx@test.ex>
data
From: 99Junk99@somewhere.com
To:
Subject: MAKE MONEY FAST!!!!
Message-id: abcde

This should be enough to trip the threshold.
.
quit
****
exim -odi -bs
ehlo test.ex
mail from:<>
rcpt to:<userx@test.ex>
data
From: Test person <tp@cam.ac.uk>
To: Me <userx@test.ex>
Subject: A real test message
Date: Fri, 17 Dec 2004 16:13:04 +0100
Message-ID: <41C2F849.3060203@projectile.test.ex>
FakeReject: test fakereject

OK, this should look like a genuine message, but
it will trip on THIS REGEX.
.
quit
****
exim -odi -bs
ehlo test.ex
mail from:<>
rcpt to:<userx@test.ex>
data
Date: Fri, 17 Dec 2004 14:35:01 +0100
From: J Caesar <jcaesar@test.ex>
To: a-list00@exim.org
Message-ID: <20041217133501.GA3058@test.ex>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR"
Content-Disposition: inline
Subject: [exim] Re: Bug#286074: eximstats: uses message count as data for
	the "volume" charts
X-BeenThere: a-list00@exim.org
X-Mailman-Version: 2.1.5
Precedence: list

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Test quoted-printable =3D    
Space at end of line=40
Continued line =    
with this text.

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

There was a part of the patch missing, complete one is attached.
     sorry for wasting your time

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=working-patch

--- /usr/sbin/eximstats 2004-12-17 13:36:44.381983753 +0100
+++ eximstats	2004-12-17 13:47:37.763185260 +0100
@@ -1107,11 +1107,11 @@
   if (scalar @chartdatanames < $ntopchart)
     {
     push(@chartdatanames, $key);
-    push(@chartdatavals, $$m_count{$key});
+    push(@chartdatavals, $$m_data{$key});
     }
   else
     {
-    $chartotherval += $$m_count{$key};
+    $chartotherval += $$m_data{$key};
     }
   }
 push(@chartdatanames, "Other");

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 

--T4sUOijqQbZv57TR--
.
quit
****
# Non-smtp message 
exim -odi userx@test.ex
A message without any headers.
.
****
# Non-smtp MIME message
exim -odi userx@test.ex
Date: Fri, 17 Dec 2004 14:35:01 +0100
From: J Caesar <jcaesar@test.ex>
To: a-list00@exim.org
Message-ID: <20041217133501.GA3058@test.ex>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR"
Content-Disposition: inline
Subject: [exim] Re: Bug#286074: eximstats: uses message count as data for
	the "volume" charts
X-BeenThere: a-list00@exim.org
X-Mailman-Version: 2.1.5
Precedence: list

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

There was a part of the patch missing, complete one is attached.
     sorry for wasting your time

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=working-patch

--- /usr/sbin/eximstats 2004-12-17 13:36:44.381983753 +0100
+++ eximstats	2004-12-17 13:47:37.763185260 +0100
@@ -1107,11 +1107,11 @@
   if (scalar @chartdatanames < $ntopchart)
     {
     push(@chartdatanames, $key);
-    push(@chartdatavals, $$m_count{$key});
+    push(@chartdatavals, $$m_data{$key});
     }
   else
     {
-    $chartotherval += $$m_count{$key};
+    $chartotherval += $$m_data{$key};
     }
   }
 push(@chartdatanames, "Other");

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 

--T4sUOijqQbZv57TR--
****
exim -odi -bs
ehlo test.ex
mail from:<>
rcpt to:<userx@test.ex>
data
From: Test person <tp@cam.ac.uk>
To: Me <userx@test.ex>
Subject: A real test message
Date: Fri, 17 Dec 2004 16:13:04 +0100
Message-ID: <41C2F849.3060203@projectile.test.ex>
FakeDefer: test fakedefer

OK, this should look like a genuine message, but
it will trip on THIS REGEX.
.
quit
****
# Very simple virus test
exim -odi -bs
mail from:<>
rcpt to:<userx@test.ex>
data
Subject: a virus test

X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
.
quit
****