spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jhar...@apache.org
Subject svn commit: r1494210 - in /spamassassin/trunk/rulesrc/sandbox/jhardin: 20_misc_testing.cf 20_tbird_image_spam.cf
Date Tue, 18 Jun 2013 17:12:10 GMT
Author: jhardin
Date: Tue Jun 18 17:12:10 2013
New Revision: 1494210

URL: http://svn.apache.org/r1494210
Log:
Tune HTML gibberish rules, add score limits

Modified:
    spamassassin/trunk/rulesrc/sandbox/jhardin/20_misc_testing.cf
    spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf

Modified: spamassassin/trunk/rulesrc/sandbox/jhardin/20_misc_testing.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/jhardin/20_misc_testing.cf?rev=1494210&r1=1494209&r2=1494210&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/jhardin/20_misc_testing.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/jhardin/20_misc_testing.cf Tue Jun 18 17:12:10 2013
@@ -500,16 +500,22 @@ body           __STYLE_TAG_IN_BODY      
 body           __BODY_XHTML             /<x-html>/i
 rawbody        __STYLE_GIBBERISH_1      /<style[^>]{0,30}>(?:\s{0,80}[^\s:;<]){150}/im
 rawbody        __STYLE_GIBBERISH_2      /\.style\w{0,20}\s{1,10}\{[^:;]{200}/im
-rawbody        __STYLE_GIBBERISH_3      /<style[^>]{0,30}>\s{0,30}(?:[a-z0-9_:]{1,30}\s{0,10}\{[^}]{1,50}\}\s{0,80}){1,5}(?:\w{1,30}\s{1,10}){30}/im
+rawbody        __STYLE_GIBBERISH_3      /<style[^>]{0,30}>\s{0,30}(?:[\w:]{1,30}\s{0,10}\{[^}]{1,50}\}\s{0,80}){1,5}(?:[\w,.']{1,30}\s{1,10}){40}/im
 meta           __STYLE_GIBBERISH        (__STYLE_GIBBERISH_1 || __STYLE_GIBBERISH_2 || __STYLE_GIBBERISH_3)
 meta           STYLE_GIBBERISH          __STYLE_GIBBERISH && (__BODY_XHTML || !__STYLE_TAG_IN_BODY)
&& !__THREADED && !__RCD_RDNS_MAIL_MESSY && !__RCD_RDNS_DIAL_MESSY
&& !__HAS_REPLY_TO && !MIME_HTML_MOSTLY
 describe       STYLE_GIBBERISH          Nonsense in HTML <STYLE> tag
+score          STYLE_GIBBERISH          4.00	# limit
 
 body           __SCRIPT_TAG_IN_BODY     /<script>/i
 rawbody        __SCRIPT_GIBBERISH       /<script>[^;<]{100}/im
-meta           SCRIPT_GIBBERISH         __SCRIPT_GIBBERISH && !__SCRIPT_TAG_IN_BODY
&& !__TAG_EXISTS_META
+meta           SCRIPT_GIBBERISH         __SCRIPT_GIBBERISH && (__BODY_XHTML || !__SCRIPT_TAG_IN_BODY)
&& !__TAG_EXISTS_META
 describe       SCRIPT_GIBBERISH         Nonsense in HTML <SCRIPT> tag
 
+rawbody        __COMMENT_GIBBERISH      /<!--(?:\s{1,10}[\w']{1,40}){100}/im
+meta           COMMENT_GIBBERISH        __COMMENT_GIBBERISH
+describe       COMMENT_GIBBERISH        Nonsense in long HTML comment
+score          COMMENT_GIBBERISH        1.00	# limit
+
 #rawbody        MANY_DIV_5                   /(?:<div[^>]{0,30}>\s{0,80}){5}/im
 #tflags         MANY_DIV_5                    nopublish
 #rawbody        MANY_DIV_6                   /(?:<div[^>]{0,30}>\s{0,80}){6}/im

Modified: spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf?rev=1494210&r1=1494209&r2=1494210&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf Tue Jun 18 17:12:10
2013
@@ -62,7 +62,7 @@ score      TO_NO_BRKTS_MSFT         3.50
 meta       __TO_NO_BRKTS_PCNT       __TO_NO_ARROWS_R && __FB_NUM_PERCNT
 meta       TO_NO_BRKTS_PCNT         __TO_NO_BRKTS_PCNT && !__SUBJECT_ENCODED_B64
&& !__DOS_HAS_LIST_UNSUB && !__VIA_ML && !__ISO_2022_JP_DELIM &&
!__IMS_MSGID && !__THREAD_INDEX_GOOD && !__RCD_RDNS_MX_MESSY && !__UNSUB_LINK
&& !__LONGLINE && !URI_HEX && !__RP_MATCHES_RCVD && !__MAIL_LINK
&& !__BUGGED_IMG && !__MIME_QP && !__NOT_A_PERSON && !__COMMENT_EXISTS
&& !__TAG_EXISTS_STYLE && !__HAS_URI && !__ENV_AND_HDR_FROM_MATCH
&& !__HAS_X_MAILER 
 describe   TO_NO_BRKTS_PCNT         To: misformatted + percentage
-#score      TO_NO_BRKTS_PCNT         0.20
+score      TO_NO_BRKTS_PCNT         3.00	# limit
 
 meta       __TO_NO_BRKTS_DIRECT     __TO_NO_ARROWS_R && __DOS_DIRECT_TO_MX
 meta       TO_NO_BRKTS_DIRECT       __TO_NO_BRKTS_DIRECT && !__IS_EXCH &&
!__THREAD_INDEX_GOOD && !__COMMENT_EXISTS && !__RCD_RDNS_MTA_MESSY &&
!__TVD_SPACE_RATIO && !__THREADED && !__FB_DO_NOT_REPLY && !__VBOUNCE_MAILSWEEP3
&& !__DEAL && !__RCD_RDNS_MAIL_MESSY && !__UNSUB_LINK && !__RP_MATCHES_RCVD
&& !__DKIM_EXISTS && !__TAG_EXISTS_CENTER



Mime
View raw message