You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by si...@apache.org on 2008/08/30 04:45:44 UTC

svn commit: r690447 - /spamassassin/rules/trunk/sandbox/sidney/70_other.cf

Author: sidney
Date: Fri Aug 29 19:45:44 2008
New Revision: 690447

URL: http://svn.apache.org/viewvc?rev=690447&view=rev
Log:
more tests for bug 5428

Modified:
    spamassassin/rules/trunk/sandbox/sidney/70_other.cf

Modified: spamassassin/rules/trunk/sandbox/sidney/70_other.cf
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/sidney/70_other.cf?rev=690447&r1=690446&r2=690447&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/sidney/70_other.cf (original)
+++ spamassassin/rules/trunk/sandbox/sidney/70_other.cf Fri Aug 29 19:45:44 2008
@@ -12,6 +12,7 @@
 score T_SIDNEY_URI_NOVOWEL 0.01
 
 ifplugin Mail::SpamAssassin::Plugin::ReplaceTags
+replace_inter SP2 [\s\d_*\$\%(),.:;?!}{\[\]|\/?^\#~\xa1`'+-]?
 
 header T_SIDNEY_SUBJECT_FUZZY_PENIS0	Subject =~ /<inter W3><post P3>\b(?!penis)<P><E><N><I><S>/i
 describe T_SIDNEY_SUBJECT_FUZZY_PENIS0	Test should be identical to SUBJECT_FUZZY_PENIS
@@ -29,15 +30,25 @@
 score T_SIDNEY_SUBJECT_FUZZY_PENIS2 0.01
 
 # same as  FRT_PENIS1
-header T_SIDNEY_SUBJECT_FUZZY_PENIS3	/<inter SP2><post P2>\b(?!pen\s?is)(?!penny[ ']?s)<P><E><N><I><S>/i
+header T_SIDNEY_SUBJECT_FUZZY_PENIS3	Subject =~ /<inter SP2><post P2>\b(?!pen\s?is)(?!penny[ ']?s)<P><E><N><I><S>/i
 replace_rules T_SIDNEY_SUBJECT_FUZZY_PENIS3
 score T_SIDNEY_SUBJECT_FUZZY_PENIS3 0.01
 
 # based on FRT_PENIS1
-header T_SIDNEY_SUBJECT_FUZZY_PENIS4	/<inter SP2><post P2>\b(?!pen\s?is)(?!penny[ ']?s)<P><E><N><I><S>\b/i
+header T_SIDNEY_SUBJECT_FUZZY_PENIS4	Subject =~ /<inter SP2><post P2>\b(?!pen\s?is)(?!penny[ ']?s)<P><E><N><I><S>\b/i
 replace_rules T_SIDNEY_SUBJECT_FUZZY_PENIS4
 score T_SIDNEY_SUBJECT_FUZZY_PENIS4 0.01
 
+# based on FRT_PENIS1
+header T_SIDNEY_SUBJECT_FUZZY_PENIS5	Subject =~ /<inter SP><post P2>\b(?!pen\s?is)(?!penny[ ']?s)<P><E><N><I><S>\b/i
+replace_rules T_SIDNEY_SUBJECT_FUZZY_PENIS5
+score T_SIDNEY_SUBJECT_FUZZY_PENIS5 0.01
+
+# based on FRT_PENIS1
+header T_SIDNEY_SUBJECT_FUZZY_PENIS6	Subject =~ /<inter SP><post P2>\b(?!pen\s?is)(?!penny[ ']?s)<P><E><N><I><S>\b/i
+replace_rules T_SIDNEY_SUBJECT_FUZZY_PENIS6
+score T_SIDNEY_SUBJECT_FUZZY_PENIS6 0.01
+
 # what each does different from the other
 meta T_SIDNEY_FUZZYP4NOT3 T_SIDNEY_SUBJECT_FUZZY_PENIS4 && !T_SIDNEY_SUBJECT_FUZZY_PENIS3
 describe T_SIDNEY_FUZZYP4NOT3 Compare rule P4 with P3