1# SpamAssassin rules file: regression tests
2#
3# This file contains tests performed on `make test`. It should not be
4# distributed.
5#
6# <@LICENSE>
7# Licensed to the Apache Software Foundation (ASF) under one or more
8# contributor license agreements.  See the NOTICE file distributed with
9# this work for additional information regarding copyright ownership.
10# The ASF licenses this file to you under the Apache License, Version 2.0
11# (the "License"); you may not use this file except in compliance with
12# the License.  You may obtain a copy of the License at:
13#
14#     http://www.apache.org/licenses/LICENSE-2.0
15#
16# Unless required by applicable law or agreed to in writing, software
17# distributed under the License is distributed on an "AS IS" BASIS,
18# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19# See the License for the specific language governing permissions and
20# limitations under the License.
21# </@LICENSE>
22#
23###########################################################################
24
25test DEAR_SOMETHING ok Dear IT professional,
26test DEAR_SOMETHING ok Dear Internet Investor:
27test DEAR_FRIEND ok Dear friend,
28test DEAR_FRIEND fail Dear Mr. Ithacus,
29
30test FROM_STARTS_WITH_NUMS     ok   12345678matt@sergeant.org
31test FROM_STARTS_WITH_NUMS     fail matt@sergeant.org
32test FORGED_YAHOO_RCVD fail by mf1.lng.yahoo.com (8.11.1/8.11.1) id g3SDfPH19426
33test NUMERIC_HTTP_ADDR ok http://123456789/foo/bar
34
35test US_DOLLARS_3 fail $-$NFbMF$K!"A49q$+$iLd$$9g$o$;$,;&E~$7$F$$$^$9!#
36test US_DOLLARS_3 ok OF US$75,000,000.00 ( SEVENTYFIVE
37test US_DOLLARS_3 ok DOLLAR(USD$30,000,000,00.)
38test US_DOLLARS_3 ok ($21,500,000.)
39test US_DOLLARS_3 ok ($ 152,000.000.00)
40
41# note: have to use "." instead of "#", as it's the comment char
42
43test TRACKER_ID     ok          2174Hzdm0-105YUqT8863DiDg0-616mqbE4931HEBc0-732qBHd6314l52
44test TRACKER_ID     ok          ofsknxxdqgtgqvsoiytkivajvtj
45test TRACKER_ID     fail        <!-- ADMINISTRIVIA -->
46test TRACKER_ID     fail        Donau-Dampfschifffahrts-Kapitaen
47
48test __OBFUSCATING_COMMENT_A ok     This is a te<!--foo-->st
49test __OBFUSCATING_COMMENT_A fail   Not a <!-- problem --> here
50test __OBFUSCATING_COMMENT_A fail   or<!--problem--> here
51test __OBFUSCATING_COMMENT_A fail   This <tag><!-- neither --></tag> I hope
52
53test HIDE_WIN_STATUS ok <a href=foo onMouseOver="window.status='bar';>
54test HIDE_WIN_STATUS fail attributes like href=foo onMouseOver="window.status='bar'"
55test HIDE_WIN_STATUS fail attributes like href=foo onMouseOver="flashiness"
56
57test BAD_CREDIT ok   no credit checks
58test BAD_CREDIT ok   reestablish credit
59test BAD_CREDIT ok   establish good credit
60test BAD_CREDIT ok   repair your credit
61test BAD_CREDIT fail NOTICE: Your credit card company may place the words "San Antonio"
62
63