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 2014/02/12 22:07:42 UTC
svn commit: r1567753 -
/spamassassin/trunk/rulesrc/sandbox/jhardin/20_MIME_in_body.cf
Author: jhardin
Date: Wed Feb 12 21:07:42 2014
New Revision: 1567753
URL: http://svn.apache.org/r1567753
Log:
Fix SA version check
Modified:
spamassassin/trunk/rulesrc/sandbox/jhardin/20_MIME_in_body.cf
Modified: spamassassin/trunk/rulesrc/sandbox/jhardin/20_MIME_in_body.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/jhardin/20_MIME_in_body.cf?rev=1567753&r1=1567752&r2=1567753&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/jhardin/20_MIME_in_body.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/jhardin/20_MIME_in_body.cf Wed Feb 12 21:07:42 2014
@@ -3,10 +3,11 @@
# Spams without a text body part first started appearing in 5/2009
# Requires fix for bug#6845 to work properly
-require_version 3.004000
-body __MIME_CTYPE_IN_BODY /^Content-Type:\s/
-meta __MIME_MALF __CTYPE_MULTIPART_ANY && __MIME_CTYPE_IN_BODY
-meta MIME_MALF __MIME_MALF && !ALL_TRUSTED
-describe MIME_MALF Malformed MIME: headers in body
-score MIME_MALF 2.00 # limit
+if (version >= 3.004000)
+ body __MIME_CTYPE_IN_BODY /^Content-Type:\s/
+ meta __MIME_MALF __CTYPE_MULTIPART_ANY && __MIME_CTYPE_IN_BODY
+ meta MIME_MALF __MIME_MALF && !ALL_TRUSTED
+ describe MIME_MALF Malformed MIME: headers in body
+ score MIME_MALF 2.00 # limit
+endif