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 2009/06/16 15:14:00 UTC
svn commit: r785199 - in /spamassassin/rules/trunk/sandbox/jhardin:
20_MIME_no_text.cf 20_image.cf
Author: jhardin
Date: Tue Jun 16 13:13:59 2009
New Revision: 785199
URL: http://svn.apache.org/viewvc?rev=785199&view=rev
Log:
Make mime_no_text rules more generic and rename the ruleset file.
Added:
spamassassin/rules/trunk/sandbox/jhardin/20_MIME_no_text.cf
Removed:
spamassassin/rules/trunk/sandbox/jhardin/20_image.cf
Added: spamassassin/rules/trunk/sandbox/jhardin/20_MIME_no_text.cf
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/jhardin/20_MIME_no_text.cf?rev=785199&view=auto
==============================================================================
--- spamassassin/rules/trunk/sandbox/jhardin/20_MIME_no_text.cf (added)
+++ spamassassin/rules/trunk/sandbox/jhardin/20_MIME_no_text.cf Tue Jun 16 13:13:59 2009
@@ -0,0 +1,21 @@
+
+# John Hardin <jh...@impsec.org>
+# Spams without a text body part first started appearing in 5/2009
+
+# These should be generally useful to other rules as well
+header __CTYPE_MULTIPART_MXD Content-Type =~ /multipart\/mixed/i
+header __CTYPE_MULTIPART_ANY Content-Type =~ /multipart\/\w+/i
+header __XM_PHP X-Mailer =~ /^PHP\s?v?\/?\d\./
+
+ifplugin Mail::SpamAssassin::Plugin::MIMEHeader
+ mimeheader __ANY_TEXT_ATTACH Content-Type =~ /text\/\w+/i
+
+ meta MIME_NO_TEXT (__CTYPE_MULTIPART_ANY && !__ANY_TEXT_ATTACH)
+ score MIME_NO_TEXT 1.00
+ describe MIME_NO_TEXT No text body parts
+
+ meta MIME_PHP_NO_TEXT (MIME_NO_TEXT && __XM_PHP)
+ score MIME_PHP_NO_TEXT 2.00
+ describe MIME_PHP_NO_TEXT No text body parts, X-Mailer: PHP
+endif
+