You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by kh...@apache.org on 2011/03/04 05:04:37 UTC
svn commit: r1077335 - in /spamassassin/trunk: rules/25_replace.cf
rulesrc/sandbox/emailed/00_FVGT_File001.cf
Author: khopesh
Date: Fri Mar 4 04:04:37 2011
New Revision: 1077335
URL: http://svn.apache.org/viewvc?rev=1077335&view=rev
Log:
bug 6541 - don't trip over foreign words in replace patterns
Modified:
spamassassin/trunk/rules/25_replace.cf
spamassassin/trunk/rulesrc/sandbox/emailed/00_FVGT_File001.cf
Modified: spamassassin/trunk/rules/25_replace.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rules/25_replace.cf?rev=1077335&r1=1077334&r2=1077335&view=diff
==============================================================================
--- spamassassin/trunk/rules/25_replace.cf (original)
+++ spamassassin/trunk/rules/25_replace.cf Fri Mar 4 04:04:37 2011
@@ -81,7 +81,7 @@ header SUBJECT_FUZZY_CHEAP Subject =~ /<
describe SUBJECT_FUZZY_CHEAP Attempt to obfuscate words in Subject:
replace_rules SUBJECT_FUZZY_CHEAP
-header SUBJECT_FUZZY_PENIS Subject =~ /<inter W3><post P3>\b(?!(pen(is|ny)))<P><E><N><I><S>\b/i
+header SUBJECT_FUZZY_PENIS Subject =~ /<inter W3><post P3>\b(?!pen\s?(?:ie?s|ny[ ']?s))<P><E><N><I><S>\b/i
describe SUBJECT_FUZZY_PENIS Attempt to obfuscate words in Subject:
replace_rules SUBJECT_FUZZY_PENIS
@@ -109,7 +109,7 @@ body FUZZY_CPILL /(?!ciali[sz])<C><I><A>
describe FUZZY_CPILL Attempt to obfuscate words in spam
replace_rules FUZZY_CPILL
-body FUZZY_CREDIT /<inter W1>(?!credit)<C><R><E><D><I><T>/i
+body FUZZY_CREDIT /<inter W1>(?![ck]r[e\xe9]dit)<C><R><E><D><I><T>/i
describe FUZZY_CREDIT Attempt to obfuscate words in spam
replace_rules FUZZY_CREDIT
@@ -122,12 +122,12 @@ body FUZZY_GUARANTEE /<inter W1><post P2
describe FUZZY_GUARANTEE Attempt to obfuscate words in spam
replace_rules FUZZY_GUARANTEE
-body FUZZY_MEDICATION /<inter W1><post P2>(?!medication)<M><E><D><I><C><A><T><I><O><N>/i
+body FUZZY_MEDICATION /<inter W1><post P2>(?!medicati[eo])<M><E><D><I><C><A><T><I><O><N>/i
describe FUZZY_MEDICATION Attempt to obfuscate words in spam
replace_rules FUZZY_MEDICATION
-body FUZZY_MILLION /(?!million)<M><I><L><L><I><O><N>/i
+body FUZZY_MILLION /(?!milli?[o\xf3\xd3]n)<M><I><L><L><I><O><N>/i
describe FUZZY_MILLION Attempt to obfuscate words in spam
replace_rules FUZZY_MILLION
Modified: spamassassin/trunk/rulesrc/sandbox/emailed/00_FVGT_File001.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/emailed/00_FVGT_File001.cf?rev=1077335&r1=1077334&r2=1077335&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/emailed/00_FVGT_File001.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/emailed/00_FVGT_File001.cf Fri Mar 4 04:04:37 2011
@@ -3564,7 +3564,7 @@ replace_rules FRT_CONTACT
#counts FRT_CONTACT 10s/0h of 47019 corpus (37183s/9836h FVGT) 12/23/06
-body FRT_DIPLOMA /<inter SP2><post P2>\b(?!diploma)<D><IX><P><L><O><M><A>/i
+body FRT_DIPLOMA /<inter SP2><post P2>\b(?!d[iy]pl[o\xe2\xc2]m)<D><IX><P><L><O><M><A>/i
describe FRT_DIPLOMA ReplaceTags: Diploma
##score FRT_DIPLOMA 1.499
replace_rules FRT_DIPLOMA
@@ -3791,7 +3791,7 @@ replace_rules FRT_PAYMENT
#counts FRT_PAYMENT 2s/0h of 47019 corpus (37183s/9836h FVGT) 12/23/06
-body FRT_PENIS1 /<inter SP2><post P2>\b(?!pen\s?is)(?!penny[ ']?s)<P><E><N><IX><SX>\b/i
+body FRT_PENIS1 /<inter SP2><post P2>\b(?!pen\s?(?:ie?s|ny[ ']?s))<P><E><N><IX><SX>\b/i
describe FRT_PENIS1 ReplaceTags: Penis
##score FRT_PENIS1 3.592
replace_rules FRT_PENIS1