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

svn commit: r462756 - /spamassassin/rules/trunk/sandbox/jm/20_basic.cf

Author: jm
Date: Wed Oct 11 03:22:12 2006
New Revision: 462756

URL: http://svn.apache.org/viewvc?view=rev&rev=462756
Log:
promising new MIMEHeader rule matching Content-ID format

Modified:
    spamassassin/rules/trunk/sandbox/jm/20_basic.cf

Modified: spamassassin/rules/trunk/sandbox/jm/20_basic.cf
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/jm/20_basic.cf?view=diff&rev=462756&r1=462755&r2=462756
==============================================================================
--- spamassassin/rules/trunk/sandbox/jm/20_basic.cf (original)
+++ spamassassin/rules/trunk/sandbox/jm/20_basic.cf Wed Oct 11 03:22:12 2006
@@ -66,3 +66,13 @@
 # persistent spamhaus, getting past a lot of bad stuff
 header RCVD_LSO_SND         X-Spam-Relays-Untrusted =~ /rdns=\S+\.lso-snd\.com /
 
+ifplugin Mail::SpamAssassin::Plugin::MIMEHeader
+# works well here
+mimeheader PART_CID_STOCK    Content-ID =~ /^<00[a-f0-9]{10}\$[a-f0-9]{8}\$[a-f0-9]{8}\@[A-Za-z]+>$/
+mimeheader __PART_CID_STOCK_CT Content-Type =~ /^image\/gif$/
+mimeheader __PART_CID_STOCK_CD Content-Disposition =~ /^inline$/
+
+# a possible more restrictive meta to limit that a bit
+meta PART_CID_STOCK_2       (__PART_CID_STOCK_CT&&__PART_CID_STOCK_CD&&PART_CID_STOCK)
+endif
+