You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2008/10/31 12:57:37 UTC

svn commit: r709393 - in /spamassassin/rules/branches/3.2: 20_head_tests.cf 20_uri_tests.cf 50_scores.cf

Author: jm
Date: Fri Oct 31 04:57:37 2008
New Revision: 709393

URL: http://svn.apache.org/viewvc?rev=709393&view=rev
Log:
bug 5736: fix FROM_LOCAL_NOVOWEL, FROM_DOMAIN_NOVOWEL, URI_NOVOWEL to avoid common FPs; reduce their scores to 0.5 points each, too

Modified:
    spamassassin/rules/branches/3.2/20_head_tests.cf
    spamassassin/rules/branches/3.2/20_uri_tests.cf
    spamassassin/rules/branches/3.2/50_scores.cf

Modified: spamassassin/rules/branches/3.2/20_head_tests.cf
URL: http://svn.apache.org/viewvc/spamassassin/rules/branches/3.2/20_head_tests.cf?rev=709393&r1=709392&r2=709393&view=diff
==============================================================================
--- spamassassin/rules/branches/3.2/20_head_tests.cf (original)
+++ spamassassin/rules/branches/3.2/20_head_tests.cf Fri Oct 31 04:57:37 2008
@@ -372,10 +372,10 @@
 header UNCLOSED_BRACKET		ALL =~ /\[\d+\r?\n/s
 describe UNCLOSED_BRACKET	Headers contain an unclosed bracket
 
-header FROM_DOMAIN_NOVOWEL	From =~ /\@\S*[bcdfghjklmnpqrstvwxz]{7}/i
+header FROM_DOMAIN_NOVOWEL	From =~ /\@\S*[bcdfgjklmnpqrstvwxz]{7}/i
 describe FROM_DOMAIN_NOVOWEL	From: domain has series of non-vowel letters
 
-header FROM_LOCAL_NOVOWEL	From =~ /[bcdfghjklmnpqrstvwxz]{7}\S*\@/i
+header FROM_LOCAL_NOVOWEL	From =~ /[bcdfgjklmnpqrstvwxz]{7}\S*\@/i
 describe FROM_LOCAL_NOVOWEL	From: localpart has series of non-vowel letters
 
 header FROM_LOCAL_HEX		From =~ /[0-9a-f]{11}\S*\@/i

Modified: spamassassin/rules/branches/3.2/20_uri_tests.cf
URL: http://svn.apache.org/viewvc/spamassassin/rules/branches/3.2/20_uri_tests.cf?rev=709393&r1=709392&r2=709393&view=diff
==============================================================================
--- spamassassin/rules/branches/3.2/20_uri_tests.cf (original)
+++ spamassassin/rules/branches/3.2/20_uri_tests.cf Fri Oct 31 04:57:37 2008
@@ -99,7 +99,7 @@
 uri URI_HEX		m%^https?://[^/?]*\b[0-9a-f]{6,}\b%i
 describe URI_HEX	URI hostname has long hexadecimal sequence
 
-uri URI_NOVOWEL		m%^https?://[^/?]*[bcdfghjklmnpqrstvwxz]{7}%i
+uri URI_NOVOWEL		m%^https?://[^/?]*[bcdfgjklmnpqrstvwxz]{7}%i
 describe URI_NOVOWEL	URI hostname has long non-vowel sequence
 
 uri URI_UNSUBSCRIBE		/\b(?:gone|opened|out)\.php/i

Modified: spamassassin/rules/branches/3.2/50_scores.cf
URL: http://svn.apache.org/viewvc/spamassassin/rules/branches/3.2/50_scores.cf?rev=709393&r1=709392&r2=709393&view=diff
==============================================================================
--- spamassassin/rules/branches/3.2/50_scores.cf (original)
+++ spamassassin/rules/branches/3.2/50_scores.cf Fri Oct 31 04:57:37 2008
@@ -246,11 +246,11 @@
 score FREE_PORN 0 # n=0 n=1 n=2 n=3
 score FREE_QUOTE_INSTANT 2.500 2.499 1.499 1.496 # n=2
 score FROM_BLANK_NAME 2.215 2.212 2.100 0.760
-score FROM_DOMAIN_NOVOWEL 3.000 3.099 2.999 2.592
+score FROM_DOMAIN_NOVOWEL 0.5
 score FROM_EXCESS_BASE64 2.077 1.984 1.574 1.456
 score FROM_LOCAL_DIGITS 0.001
 score FROM_LOCAL_HEX 2.602 2.733 1.432 1.399
-score FROM_LOCAL_NOVOWEL 3.199 3.196 3.199 3.196
+score FROM_LOCAL_NOVOWEL 0.5
 score FROM_NO_USER 2.199 0.499 2.081 1.483
 score FROM_OFFERS 2.601 1.145 2.699 0.001
 score FROM_STARTS_WITH_NUMS 2.302 0.723 1.232 1.499
@@ -510,7 +510,7 @@
 score URG_BIZ 2.384 0.667 1.511 1.585
 score URI_HEX 1.777 1.316 1.395 0.368
 score URI_L_PHP 3.099 3.096 3.099 2.905 # n=2
-score URI_NOVOWEL 2.899 2.543 1.764 1.620
+score URI_NOVOWEL 0.5
 score URI_NO_WWW_BIZ_CGI 0 # n=0 n=1 n=2 n=3
 score URI_NO_WWW_INFO_CGI 2.720 0.601 3.138 1.043
 score URI_UNSUBSCRIBE 2.794 3.092 1.538 2.737