You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by pd...@apache.org on 2021/01/03 10:03:58 UTC

svn commit: r1885048 - /spamassassin/trunk/rulesrc/sandbox/pds/20_urlshort.cf

Author: pds
Date: Sun Jan  3 10:03:57 2021
New Revision: 1885048

URL: http://svn.apache.org/viewvc?rev=1885048&view=rev
Log:
Add QP to short body counts, HTML being bulked out

Modified:
    spamassassin/trunk/rulesrc/sandbox/pds/20_urlshort.cf

Modified: spamassassin/trunk/rulesrc/sandbox/pds/20_urlshort.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/pds/20_urlshort.cf?rev=1885048&r1=1885047&r2=1885048&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/pds/20_urlshort.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/pds/20_urlshort.cf Sun Jan  3 10:03:57 2021
@@ -800,8 +800,13 @@ meta     XPRIO_URL_SHORTNER __XPRIO_MINF
 describe XPRIO_URL_SHORTNER X-Priority header and short URL
 score    XPRIO_URL_SHORTNER 1.0 # limit
 
-meta     __PDS_MSG_512 (__KAM_BODY_LENGTH_LT_512 || __HTML_LENGTH_512)
-meta     __PDS_MSG_1024 (__KAM_BODY_LENGTH_LT_1024 || __PDS_HTML_LENGTH_1024)
+rawbody __MIME_QPC           eval:check_for_mime('mime_quoted-printable_count')
+
+meta    __PDS_QP_512       (__MIME_QPC < 512)
+meta    __PDS_QP_1024      (__MIME_QPC < 1024)
+
+meta     __PDS_MSG_512 (__KAM_BODY_LENGTH_LT_512 || __HTML_LENGTH_512 || __PDS_QP_512)
+meta     __PDS_MSG_1024 (__KAM_BODY_LENGTH_LT_1024 || __PDS_HTML_LENGTH_1024 || __PDS_QP_1024)
 
 meta     SHORT_SHORTNER __PDS_MSG_512 && (__PDS_URISHORTENER || __URL_SHORTENER) && !DRUGS_ERECTILE
 describe SHORT_SHORTNER Short body with little more than a link to a shortener