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