| # SpamAssassin rules file: regression tests |
| # |
| # This file contains tests perfomed on `make test`. It should not be |
| # distributed. |
| # |
| ########################################################################### |
| |
| test BIG_FONT fail <font size=3D2> |
| test BIG_FONT ok <font size=3D+2> |
| test BIG_FONT ok <font size=3D3> |
| test BIG_FONT ok <font size=3D+3> |
| test BIG_FONT fail <font size="2"> |
| test BIG_FONT ok <font size="+2"> |
| test BIG_FONT ok <font size="3"> |
| test BIG_FONT ok <font size="+3"> |
| test BIG_FONT fail <font size="small"> |
| test BIG_FONT fail <font face="serif"> |
| test BIG_FONT ok <font size="5"> foo </font> |
| test BIG_FONT ok <font size="+2"> foo </font> |
| test BIG_FONT ok <font size="3"> foo </font> |
| test BIG_FONT fail <font size="2"> foo </font> |
| test BIG_FONT fail <font size="+1"> foo </font> |
| test BIG_FONT fail <font size="-1"> foo </font> |
| test BIG_FONT fail <font size="1"> foo </font> |
| |
| test DEAR_EMAIL ok Dear duncf@rogers.com, |
| test DEAR_EMAIL fail Dear Duncan! |
| test DEAR_SOMETHING ok Dear IT professional, |
| test DEAR_SOMETHING ok Dear Internet Investor: |
| test DEAR_FRIEND ok Dear friend, |
| test DEAR_FRIEND fail Dear Mr. Ithacus, |
| test NIGERIAN_SCAM_2 ok THE NIGERIAN EMBASSY IN |
| test NIGERIAN_SCAM_2 ok Bank of Nigeria |
| test NIGERIAN_SCAM_2 ok Nigerian chamber of commerce |
| test NIGERIAN_SCAM_2 ok Central Bank of Sierra-Leone and |
| # |
| test NIGERIAN_SCAM_4 ok wife to the late Nigerian Head of state, General Sani Abacha |
| test NIGERIAN_SCAM_4 ok SON OF THE LATE GEN. SANI ABACHA |
| test NIGERIAN_SCAM_4 ok the son of late President Laurent Kabila |
| test NIGERIAN_SCAM_4 ok WIDOW OF LATE PRESIDENT MOBUTU SESE-SEKO |
| test NIGERIAN_SCAM_4 ok the widow of VLAJKO STOJILJKOVIC |
| test NIGERIAN_SCAM_4 ok son of the late Mobutu Sese Seko |
| test NIGERIAN_SCAM_4 ok the Second son of Timu Bangura |
| test NIGERIAN_SCAM_4 ok second son of Late President LAURENT DESIRE KABILA |
| test NIGERIAN_SCAM_4 ok the son of NDIATA MOMOH, the most popular black farmer in |
| # |
| test NIGERIAN_SCAM_5 ok Mariam Abacha, wife to the |
| test NIGERIAN_SCAM_5 ok MOHAMMED ABACHA, SON OF THE |
| test NIGERIAN_SCAM_5 ok President Laurent Kabila, since his son took |
| test NIGERIAN_SCAM_5 ok MRS. SESE-SEKO WIDOW OF |
| test NIGERIAN_SCAM_5 ok Abdul Bangura, the Second son of |
| test NIGERIAN_SCAM_5 ok Laurent Mpeti Kabila (Jnr) the second son |
| # |
| test NIGERIAN_SCAM_6 ok the late Nigerian Head of state |
| test NIGERIAN_SCAM_6 ok FORMER MILITARY HEAD OF STATE IN |
| test NIGERIAN_SCAM_6 ok THE NEW HEAD OF STATE |
| test NIGERIAN_SCAM_6 ok immediate past Minister of Finance of |
| # |
| test NIGERIAN_SCAM_7 ok Mariam Abacha, wife to the late |
| test NIGERIAN_SCAM_7 ok the late Nigerian Head of state, General Sani Abacha |
| test NIGERIAN_SCAM_7 ok of Late President LAURENT DESIRE KABILA |
| test NIGERIAN_SCAM_7 ok LATE PRESIDENT MOBUTU SESE-SEKO |
| test NIGERIAN_SCAM_7 ok Timu Bangura, who is the immediate past Minister |
| # |
| # |
| test NIGERIAN_SCAM_9 ok at the private banking sector |
| test NIGERIAN_SCAM_9 ok a private security company |
| # |
| test NIGERIAN_SCAM_10 ok next of kin |
| # |
| # |
| # |
| test NIGERIAN_SCAM_13 ok WEALTHY COCOA MERCHANT BASED IN |
| test NIGERIAN_SCAM_13 ok WEALTHY GOLD MERCHANT IN |
| test NIGERIAN_SCAM_13 ok an Oil Merchant/Contractor |
| test NIGERIAN_SCAM_13 ok one of the diamond dealers in |
| # |
| test NIGERIAN_SCAM_14 ok reliable foreign account. |
| test NIGERIAN_SCAM_14 ok a foreign partner who will |
| test NIGERIAN_SCAM_14 ok a foreign Bank Account. |
| test NIGERIAN_SCAM_14 ok trustworthily foreigner whos account will be |
| test NIGERIAN_SCAM_14 ok our foreign customerMr.CHEN |
| test NIGERIAN_SCAM_14 ok for foreign assistance/partnership |
| test NIGERIAN_SCAM_14 ok LOOK FOR A FORIEGN PARTNER FOR |
| test NIGERIAN_SCAM_14 ok as a foreign contractor, who |
| test NIGERIAN_SCAM_14 ok SOURCE FOR FOREIGN INVESTMENTS, |
| test NIGERIAN_SCAM_14 ok as a foreign national who |
| # |
| test NIGERIAN_SCAM_15 ok very confidential business proposition for |
| test NIGERIAN_SCAM_15 ok DUE TO IT'S ESTEEMING NATURE AND |
| test NIGERIAN_SCAM_15 ok ESTABLISH MUTUAL RELATIONSHIP WITH YOU |
| test NIGERIAN_SCAM_15 ok AS A REPUTABLE AND TRUSWORTHY PERSON I CAN |
| test NIGERIAN_SCAM_15 ok for a reliable and reputable person to |
| test NIGERIAN_SCAM_15 ok YOU ARE HONEST AND TRUSTWORTHY IN |
| test NIGERIAN_SCAM_15 ok AND SINCERE BUSINESS. |
| test NIGERIAN_SCAM_15 ok BUT FROM SINCERE MIND WITH |
| test NIGERIAN_SCAM_15 ok WITH HONEST DESIRE FOR ASSISTANCE AND |
| test NIGERIAN_SCAM_15 ok I HUMBLY AND SINCERELY WRITE |
| test NIGERIAN_SCAM_15 ok due respect and humility I write |
| test NIGERIAN_SCAM_15 ok shall base respect and honesty . |
| test NIGERIAN_SCAM_15 ok by virtue of its nature as |
| test NIGERIAN_SCAM_15 ok utterly confidential and "top secret". |
| test NIGERIAN_SCAM_15 ok SEASON. GRACE AND PEACE AND LOVE |
| test NIGERIAN_SCAM_15 ok the impressive information about |
| test NIGERIAN_SCAM_15 ok your capability and reliability to |
| # |
| test NIGERIAN_SCAM_16 ok in a plane crash. |
| test NIGERIAN_SCAM_16 ok in an automobile accident.On |
| test NIGERIAN_SCAM_16 ok A GHASTLY MOTOR ACCIDENT ON THE |
| test NIGERIAN_SCAM_16 ok in a air crash, until |
| # |
| test NIGERIAN_TRANSACTION_1 ok a confidential transaction of this nature |
| test NIGERIAN_TRANSACTION_1 ok strictest confidence in this transaction |
| test NIGERIAN_TRANSACTION_1 ok SUCCESS AND SAFETY IN THIS TRANSACTION |
| test NIGERIAN_TRANSACTION_1 ok very safe transaction |
| test NIGERIAN_TRANSACTION_1 ok this mutual transaction |
| test NIGERIAN_TRANSACTION_1 ok the successful execution of this transaction |
| test NIGERIAN_TRANSACTION_1 ok ensure 100%risk-free transaction |
| test NIGERIAN_TRANSACTION_1 ok any financial transaction |
| test NIGERIAN_TRANSACTION_1 ok PERSONAL DETAILS OF ME AND THE TRANSACTION. |
| # |
| test NIGERIAN_TRANSACTION_2 ok a transaction/business of this magnitude but |
| test NIGERIAN_TRANSACTION_2 ok THIS TRANSACTION REQUIRES ABSOLUTE |
| test NIGERIAN_TRANSACTION_2 ok keep this transaction secret |
| test NIGERIAN_TRANSACTION_2 ok give this transaction a diplomatic coverage |
| test NIGERIAN_TRANSACTION_2 ok in this transaction strict confidence |
| test NIGERIAN_TRANSACTION_2 ok keep the transaction strictly confidential. |
| # |
| test PORN_9 ok sex-fest |
| test PORN_9 ok cum-dumpster |
| test PORN_9 fail talcum-dumpster |
| test PORN_12 ok sluts and whores |
| test PORN_12 ok hardcore sex |
| test PORN_12 fail lolita |
| test PORN_13 ok must be at least 18 |
| test PORN_13 ok must be over 18 |
| test PORN_13 fail must be at least 13 |
| test FROM_ENDS_IN_NUMS ok matt1234@sergeant.org |
| test FROM_ENDS_IN_NUMS fail matt@sergeant.org |
| test FROM_STARTS_WITH_NUMS ok 1234matt@sergeant.org |
| test FROM_STARTS_WITH_NUMS fail matt@sergeant.org |
| test FORGED_YAHOO_RCVD fail by mf1.lng.yahoo.com (8.11.1/8.11.1) id g3SDfPH19426 |
| test NUMERIC_HTTP_ADDR ok http://123456789/foo/bar |
| test PGP_SIGNATURE_2 ok Content-Type: multipart/signed; micalg=pgp-sha1;protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" |
| test PGP_SIGNATURE_2 fail Content-Type: text/plain; charset=us-ascii |
| test SEARCH_ENGINE_PROMO ok evaluated for FREE for its keyword placement in the top twenty major search engines |
| # |
| test US_DOLLARS fail $-$NFbMF$K!"A49q$+$iLd$$9g$o$;$,;&E~$7$F$$$^$9!# |
| test US_DOLLARS ok Twenty Million Five Hundred Thousand United States Dollars |
| test US_DOLLARS ok Eight million, Five Hundred United States dollars |
| test US_DOLLARS ok One Million, Five Hundred Thousand U. S. Dollars |
| test US_DOLLARS ok EIHGTEEN MILLION UNITED STATE DOLLARS |
| test US_DOLLARS ok 24million U.S dollars cash |
| test US_DOLLARS ok 47 million US DOLLARS |
| test US_DOLLARS ok FIVE MILLION FIVE HOUNDRED THOUSAND CANADIAN DOLLAS) |
| # |
| test US_DOLLARS_2 fail JP charset test: this should not match: $1 $ |
| test US_DOLLARS_2 fail JP charset test: this should not match: $1$ |
| test US_DOLLARS_2 fail $-$NFbMF$K!"A49q$+$iLd$$9g$o$;$,;&E~$7$F$$$^$9!# |
| test US_DOLLARS_2 ok of USD$17.4M only |
| test US_DOLLARS_2 ok amount $21.5m represents |
| test US_DOLLARS_2 ok of US$26.4 million |
| test US_DOLLARS_2 ok the $21.5 million, |
| # |
| test US_DOLLARS_3 fail $-$NFbMF$K!"A49q$+$iLd$$9g$o$;$,;&E~$7$F$$$^$9!# |
| test US_DOLLARS_3 ok OF US$75,000,000.00 ( SEVENTYFIVE |
| test US_DOLLARS_3 ok DOLLAR(USD$30,000,000,00.) |
| test US_DOLLARS_3 ok ($21,500,000.) |
| test US_DOLLARS_3 ok ($ 152,000.000.00) |
| # |
| test US_DOLLARS_4 fail JP charset test: this should not match: $1 $ |
| test US_DOLLARS_4 fail JP charset test: this should not match: $1$ |
| test US_DOLLARS_4 fail $-$NFbMF$K!"A49q$+$iLd$$9g$o$;$,;&E~$7$F$$$^$9!# |
| test US_DOLLARS_4 ok of US$8.5 million (Eight |
| test US_DOLLARS_4 ok of US8.5 millions (Eight |
| |
| |
| |
| |
| # note: have to use "." instead of "#", as it's the comment char |
| test HTML_TEXT_FF0000 fail <body bgcolor=.ff0000>foo</body> |
| test HTML_TEXT_FF0000 ok <font face="Verdana" color=.ff0000>foo</font> |
| test HTML_TEXT_FF0000 ok <font face="Verdana" color='.ff0000'>foo</font> |
| test HTML_TEXT_FF0000 ok <font face="Verdana" color=".ff0000">foo</font> |
| test HTML_TEXT_FF0000 ok <font color=".ff0000" size="+4">foo</font> |
| |
| test SAVE_ON_INSURANCE ok Compare and Save Instantly On Your Auto Insurance |
| |
| test TRACKER_ID ok 2174Hzdm0-105YUqT8863DiDg0-616mqbE4931HEBc0-732qBHd6314l52 |
| test TRACKER_ID ok ofsknxxdqgtgqvsoiytkivajvtj |
| test TRACKER_ID fail <!-- ADMINISTRIVIA --> |
| test TRACKER_ID fail Donau-Dampfschifffahrts-Kapitaen |
| |
| test OBFUSCATING_COMMENT ok This is a te<!--foo-->st |
| test OBFUSCATING_COMMENT fail Not a <!-- problem --> here |
| test OBFUSCATING_COMMENT fail This <tag><!-- neither --></tag> I hope |
| |
| test NUMERIC_COMMENT ok Some text <!--34555--> followed by more |
| test NUMERIC_COMMENT fail Something <!-- A comment --> and more |
| |
| test FROM_EGROUPS ok sentto-2537484-52529-1020428367-Sxm=olswang.com@returns.groups.yahoo.com |
| test FROM_EGROUPS fail spammer@returns.groups.yahoo.com |
| |
| test HIDE_WIN_STATUS ok <a href=foo onMouseOver="window.status='bar';> |
| test HIDE_WIN_STATUS fail attributes like href=foo onMouseOver="window.status='bar'" |
| test HIDE_WIN_STATUS fail attributes like href=foo onMouseOver="flashiness" |
| |
| test LINK_TO_NO_SCHEME ok <a href=www.foo.com/>foo</a> |
| test LINK_TO_NO_SCHEME ok <a href='www.foo.com'>foo</a> |
| test LINK_TO_NO_SCHEME ok <a href="www.geocities.com/somecrap">foo</a> |
| test LINK_TO_NO_SCHEME fail <a href=http://www.foo.com/>foo</a> |
| test LINK_TO_NO_SCHEME fail <a href="http://www.foo.com">foo</a> |
| test LINK_TO_NO_SCHEME fail <a href="nextpage.html">foo</a> |
| test LINK_TO_NO_SCHEME fail <a href="../index.html">foo</a> |
| |
| test HTML_WIN_OPEN ok <script> win=window.open("http://foo/") win.blur() window.focus() </script> |
| test HTML_WIN_OPEN ok <body onload='win=window.open("http://foo/")'> |
| test HTML_WIN_OPEN fail The window.open() function |
| |
| test HTML_WIN_BLUR ok <script> win=window.open("http://foo/") win.blur() window.focus() </script> |
| test HTML_WIN_BLUR ok <body onload='win=window.open("http://foo/"); win.blur()'> |
| test HTML_WIN_BLUR fail The win.blur() function |
| |
| test OUTLOOK_FW_MSG ok Subject: FW: White Stripes Tour! |
| test OUTLOOK_FW_MSG ok Subject: Fw: Thank you yourself |
| test OUTLOOK_FW_MSG fail Subject: Fwd: Dracula |
| test OUTLOOK_FW_MSG fail Subject: fw: . qBQyzOWqKYggZT0oDJzp41nd |
| test OUTLOOK_FW_MSG fail Subject: FW:>Re: Spruce up your life!DGKJWI |
| |
| test NIGERIAN_SCAM_11 ok I work in a bank at |
| test NIGERIAN_SCAM_11 ok HAVE WORKED FOR A BANK |
| |
| test NIGERIAN_SCAM_12 ok the first son of |
| test NIGERIAN_SCAM_12 ok the only son of |
| test NIGERIAN_SCAM_12 ok AM THE ONLY MALE CHILD OF |
| test NIGERIAN_SCAM_12 ok THE FIRST MALE CHILD OF |
| test NIGERIAN_SCAM_12 ok the second son of |
| test NIGERIAN_SCAM_12 ok As the eldest son of |
| |
| test NIGERIAN_SCAM_8 ok VLAJKO STOJILJKOVIC, one of the people indicted at the Hague War Crimes Tribunal in Hague |
| |
| test SPAM_REDIRECTOR ok http://rd.yahoo.com/?http://somesite.com/ |
| test SPAM_REDIRECTOR ok http://wwp.icq.com/?http://anothersite.com/ |
| |
| |