You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by bi...@apache.org on 2018/12/10 16:22:00 UTC
svn commit: r1848602 - in /spamassassin/trunk/rulesrc/sandbox/billcole:
24_mixed_es.cf 80_test.cf
Author: billcole
Date: Mon Dec 10 16:22:00 2018
New Revision: 1848602
URL: http://svn.apache.org/viewvc?rev=1848602&view=rev
Log:
safety tuning of MIXED_ES complex and __HAS* rules
Modified:
spamassassin/trunk/rulesrc/sandbox/billcole/24_mixed_es.cf
spamassassin/trunk/rulesrc/sandbox/billcole/80_test.cf
Modified: spamassassin/trunk/rulesrc/sandbox/billcole/24_mixed_es.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/billcole/24_mixed_es.cf?rev=1848602&r1=1848601&r2=1848602&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/billcole/24_mixed_es.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/billcole/24_mixed_es.cf Mon Dec 10 16:22:00 2018
@@ -1,10 +1,10 @@
if can(Mail::SpamAssassin::Conf::feature_bug6558_free)
ifplugin Mail::SpamAssassin::Plugin::ReplaceTags
- body __LOWER_E /e/i
- tflags __LOWER_E multiple
+ body __LOWER_E /e/
+ tflags __LOWER_E multiple maxhits=250
replace_rules __E_LIKE_LETTER
body __E_LIKE_LETTER /<E>/
- tflags __E_LIKE_LETTER multiple
+ tflags __E_LIKE_LETTER multiple maxhits=400
meta MIXED_ES ( __LOWER_E > 20 ) && ( __E_LIKE_LETTER > ( (__LOWER_E * 14 ) / 10) ) && ( __E_LIKE_LETTER < ( 10 * __LOWER_E ) )
describe MIXED_ES Too many es are not es
endif
Modified: spamassassin/trunk/rulesrc/sandbox/billcole/80_test.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/billcole/80_test.cf?rev=1848602&r1=1848601&r2=1848602&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/billcole/80_test.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/billcole/80_test.cf Mon Dec 10 16:22:00 2018
@@ -2,19 +2,19 @@
describe __HAS_IMG_SRC Has an img tag on a non-quoted line
rawbody __HAS_IMG_SRC /^[^>].*<img src=/i
-tflags __HAS_IMG_SRC multiple
+tflags __HAS_IMG_SRC multiple maxhits=100
describe __HAS_HREF Has an anchor tag with a href attribute in non-quoted line
rawbody __HAS_HREF /^[^>].*<a href=/i
-tflags __HAS_HREF multiple
+tflags __HAS_HREF multiple maxhits=100
describe __HAS_IMG_SRC_ONECASE Has an img tag on a non-quoted line with consistent case
rawbody __HAS_IMG_SRC_ONECASE /^[^>].*<(img src|IMG SRC)=/
-tflags __HAS_IMG_SRC_ONECASE multiple
+tflags __HAS_IMG_SRC_ONECASE multiple maxhits=100
describe __HAS_HREF_ONECASE Has an anchor tag with a href attribute in non-quoted line with consistent case
rawbody __HAS_HREF_ONECASE /^[^>].*<(a href|A HREF)=/
-tflags __HAS_HREF_ONECASE multiple
+tflags __HAS_HREF_ONECASE multiple maxhits=100
describe __MIXED_IMG_CASE Has img tags with mixed-up cases in non-quoted lines
meta __MIXED_IMG_CASE __HAS_IMG_SRC - __HAS_IMG_SRC_ONECASE > 0