You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jh...@apache.org on 2013/10/19 02:51:26 UTC

svn commit: r1533672 - /spamassassin/trunk/rulesrc/sandbox/jhardin/20_misc_testing.cf

Author: jhardin
Date: Sat Oct 19 00:51:26 2013
New Revision: 1533672

URL: http://svn.apache.org/r1533672
Log:
Standardize minimal-body rule names, add BODY_SINGLE_WORD

Modified:
    spamassassin/trunk/rulesrc/sandbox/jhardin/20_misc_testing.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=1533672&r1=1533671&r2=1533672&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/jhardin/20_misc_testing.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/jhardin/20_misc_testing.cf Sat Oct 19 00:51:26 2013
@@ -1082,16 +1082,25 @@ body        __BODY_TEXT_LINE     /^\s*\S
 tflags      __BODY_TEXT_LINE     multiple maxhits=3
 meta        __EMPTY_BODY         __BODY_TEXT_LINE < 2 && !__SMIME_MESSAGE
 # this hits 13% of masscheck corpus spam, 50% of that only scores 2 points
-meta        EMPTY_BODY           __EMPTY_BODY && !__NUMBERS_IN_SUBJ && !__CTE && !__RP_MATCHES_RCVD && !__VIA_ML && !__MIME_ATTACHMENT && !__HAS_THREAD_INDEX && !__TO_EQ_FROM_DOM && !__ENV_AND_HDR_FROM_MATCH && !__FROM_LOWER && !__NOT_SPOOFED && !__MSGID_APPLEMAIL && !__RCD_RDNS_MAIL_MESSY && !NO_RELAYS && !__NOT_A_PERSON 
-describe    EMPTY_BODY           No body text in message
-score       EMPTY_BODY           3.00	# limit
+meta        BODY_EMPTY           __EMPTY_BODY && !__NUMBERS_IN_SUBJ && !__CTE && !__RP_MATCHES_RCVD && !__VIA_ML && !__MIME_ATTACHMENT && !__HAS_THREAD_INDEX && !__TO_EQ_FROM_DOM && !__ENV_AND_HDR_FROM_MATCH && !__FROM_LOWER && !__NOT_SPOOFED && !__MSGID_APPLEMAIL && !__RCD_RDNS_MAIL_MESSY && !NO_RELAYS && !__NOT_A_PERSON 
+describe    BODY_EMPTY           No body text in message
+score       BODY_EMPTY           3.00	# limit
 
 
 meta        __BODY_URI_ONLY      __BODY_TEXT_LINE < 3 && __HAS_ANY_URI && !__SMIME_MESSAGE
 meta        BODY_URI_ONLY        __BODY_URI_ONLY
-describe    BODY_URI_ONLY        Message body is only one line containing a URI
+describe    BODY_URI_ONLY        Message body is only a URI in one line of text or for an image
 score       BODY_URI_ONLY        0.25	# limit during testing
 
+
+body        __SINGLE_WORD_LINE  /^\s?\S{1,60}\s?$/
+tflags      __SINGLE_WORD_LINE  multiple maxhits=2
+header      __SINGLE_WORD_SUBJ  Subject =~ /^\s*\S{1,60}\s*$/
+meta        BODY_SINGLE_WORD    __BODY_TEXT_LINE < 3 && !__SMIME_MESSAGE && ((__SINGLE_WORD_LINE && !__SINGLE_WORD_SUBJ) || __SINGLE_WORD_LINE > 1)
+describe    BODY_SINGLE_WORD    Message body is only one word (no spaces)
+score       BODY_SINGLE_WORD    1.00	# limit
+
+
 #ifplugin Mail::SpamAssassin::Plugin::DKIM
 #  # malformed DKIM signatures seen in the wild - see bug#6895
 #  # see how well this performs
@@ -1157,3 +1166,5 @@ describe    ES_LIC_FROM_INFO   Spanish-l
 header      __SMIME_MESSAGE    Content-Type =~ /application\/pkcs7-mime;/i
 
 
+
+