You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by si...@apache.org on 2008/01/13 01:38:30 UTC

svn commit: r611512 - /spamassassin/rules/trunk/sandbox/sidney/70_other.cf

Author: sidney
Date: Sat Jan 12 16:38:29 2008
New Revision: 611512

URL: http://svn.apache.org/viewvc?rev=611512&view=rev
Log:
test version of FORGED_MUA_OUTLOOK using a new version of __UNUSABLE_MSGID that is mostly meta rules

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

Modified: spamassassin/rules/trunk/sandbox/sidney/70_other.cf
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/sidney/70_other.cf?rev=611512&r1=611511&r2=611512&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/sidney/70_other.cf (original)
+++ spamassassin/rules/trunk/sandbox/sidney/70_other.cf Sat Jan 12 16:38:29 2008
@@ -1,11 +1,11 @@
 # Test this as substitute for FORGED_MUA_OUTLOOK
-meta T_SIDNEY__FORGED_OE_A    (__OE_MUA && !__OE_MSGID_1 && !__OE_MSGID_2 && !__OE_MSGID_3 && !MSGID_FROM_MTA_HEADER && !__UNUSABLE_MSGID)
+meta T_SIDNEY__FORGED_OE_A    (__OE_MUA && !__OE_MSGID_1 && !__OE_MSGID_2 && !__OE_MSGID_3 && !MSGID_FROM_MTA_HEADER && !T_SIDNEY__UNUSABLE_MSGID)
 meta T_SIDNEY_FORGED_MUA_OUTLOOK_A   (T_SIDNEY__FORGED_OE_A || __FORGED_OUTLOOK_DOLLARS)
 # check if these message IDs only appear when we know it was generated by an MTA
 meta T_SIDNEY_OE_MSGID_3_MTA (__OE_MSGID_3 && MSGID_FROM_MTA_HEADER)
 meta T_SIDNEY_OE_MSGID_3_NOMTA (__OE_MSGID_3 && !MSGID_FROM_MTA_HEADER)
 # test for what is will be missed by new test
-meta T_SIDNEY__FORGED_OE_B    (__OE_MUA && !__OE_MSGID_1 && !__OE_MSGID_2 && !__OE_MSGID_3 && MSGID_FROM_MTA_HEADER && !__UNUSABLE_MSGID)
+meta T_SIDNEY__FORGED_OE_B    (__OE_MUA && !__OE_MSGID_1 && !__OE_MSGID_2 && !__OE_MSGID_3 && MSGID_FROM_MTA_HEADER && !T_SIDNEY__UNUSABLE_MSGID)
 # tests to find out how often mail that claims to be OE does and does not have a MUA message ID
 meta T_SIDNEY_OE_WITH_MUA_MSGID (__OE_MUA && !MSGID_FROM_MTA_HEADER)
 meta T_SIDNEY_OE_WITH_MTA_MSGID (__OE_MUA && MSGID_FROM_MTA_HEADER)
@@ -13,3 +13,24 @@
 body T_SIDNEY_HG_HORMONE_NO_TLA /\b(?:human growth hormone|H.G.H)\b/i
 body T_SIDNEY_HG_HORMONE_NO_ABBREV /\b(?:human growth hormone)\b/i
 body T_SIDNEY_HG_HORMONE_NO_TLA_BETTER /\b(?:human growth hormone|H\.G\.H)\b/i
+
+# meta rule form of check_messageid_not_usable
+ # Lyris eats message-ids.  also some ezmlm, I think :(
+header T_SIDNEY__LYRIS_EZLM_REMAILER  List-Unsubscribe =~ /<mailto:(?:leave-\S+|\S+-unsubscribe)\@\S+>$/
+
+# ezmlm again
+header T_SIDNEY__GATED_THROUGH_RCVD_REMOVER  eval:gated_through_received_hdr_remover()
+
+# Allen notes this as 'Wacky sendmail version?'
+header T_SIDNEY__WACKY_SENDMAIL_VERSION Received =~ /\/CWT\/DCE\)/
+
+# Apr  2 2003 jm: iPlanet rewrites lots of stuff, including Message-IDs
+header T_SIDNEY__IPLANET_MESSAGING_SERVER Received =~ /iPlanet Messaging Server/
+
+# The whole enchilada - non-eval version of __UNUSABLE_MSGID
+meta T_SIDNEY__UNUSABLE_MSGID (T_SIDNEY__LYRIS_EZLM_REMAILER && T_SIDNEY__GATED_THROUGH_RCVD_REMOVER && T_SIDNEY__WACKY_SENDMAIL_VERSION && T_SIDNEY__IPLANET_MESSAGING_SERVER)
+
+# easy checks if correct
+meta T_SIDNEY_UNUSABLE_POS_CHECK (__UNUSABLE_MSGID && T_SIDNEY__UNUSABLE_MSGID)
+meta T_SIDNEY_UNUSABLE_NEG_CHECK (__UNUSABLE_MSGID && !T_SIDNEY__UNUSABLE_MSGID)
+meta T_SIDNEY_UNUSABLE_NEG2_CHECK (!__UNUSABLE_MSGID && T_SIDNEY__UNUSABLE_MSGID)