You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2006/03/11 22:28:01 UTC

svn commit: r385175 - /spamassassin/rules/trunk/sandbox/felicity/70_other.cf

Author: felicity
Date: Sat Mar 11 13:27:59 2006
New Revision: 385175

URL: http://svn.apache.org/viewcvs?rev=385175&view=rev
Log:
new test rule to look for null chars in the full message

Modified:
    spamassassin/rules/trunk/sandbox/felicity/70_other.cf

Modified: spamassassin/rules/trunk/sandbox/felicity/70_other.cf
URL: http://svn.apache.org/viewcvs/spamassassin/rules/trunk/sandbox/felicity/70_other.cf?rev=385175&r1=385174&r2=385175&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/felicity/70_other.cf (original)
+++ spamassassin/rules/trunk/sandbox/felicity/70_other.cf Sat Mar 11 13:27:59 2006
@@ -125,6 +125,16 @@
 uri T_HTTP_ESCAPED_HOST           /^https?\:\/\/[^\/\s\?]*%[0-9a-fA-F][0-9a-fA-F]/
 uri T_HTTP_ESCAPED_HOST2          /^https?\:\/\/[^\/\s\?\']*%[0-9a-fA-F][0-9a-fA-F]/
 
+# Ok, I've said in the past that full rules are evil and that we should never
+# use them.  While I do think that they're nasty and are almost always not the
+# most efficient way to go about things, in this case, unfortunately,
+# I think it actually is the most efficient way to do this search.  :(
+# BTW: a raw (non-encoded) NUL char (ASCII 0) is forbidden by RFC2822, though
+# it seems to show up in spams a lot these days.  MTAs -- deny these mails!
+#
+#  2.548   3.0152   0.0000    1.000   1.00    1.00  NULL_IN_BODY
+full NULL_IN_BODY	/\x00/
+
 ########################################################################
 
 ifplugin Mail::SpamAssassin::Plugin::MIMEHeader