Return-Path: Delivered-To: apmail-spamassassin-users-archive@www.apache.org Received: (qmail 96331 invoked from network); 19 Mar 2010 02:28:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Mar 2010 02:28:01 -0000 Received: (qmail 56916 invoked by uid 500); 19 Mar 2010 02:27:58 -0000 Delivered-To: apmail-spamassassin-users-archive@spamassassin.apache.org Received: (qmail 56890 invoked by uid 500); 19 Mar 2010 02:27:58 -0000 Mailing-List: contact users-help@spamassassin.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@spamassassin.apache.org Received: (qmail 56883 invoked by uid 99); 19 Mar 2010 02:27:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Mar 2010 02:27:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mkettler_sa@verizon.net designates 206.46.173.19 as permitted sender) Received: from [206.46.173.19] (HELO vms173019pub.verizon.net) (206.46.173.19) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Mar 2010 02:27:48 +0000 Received: from [192.168.1.7] ([unknown] [74.107.123.32]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0KZI007I4C5G8020@vms173019.mailsrvcs.net> for users@spamassassin.apache.org; Thu, 18 Mar 2010 21:27:17 -0500 (CDT) Message-id: <4BA2E10F.3090005@verizon.net> Date: Thu, 18 Mar 2010 22:27:27 -0400 From: Matt Kettler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-version: 1.0 To: users@spamassassin.apache.org Subject: Re: Checking to see if multiple types of headers exist References: <4BA20357.9000608@unixmail.co.uk> In-reply-to: <4BA20357.9000608@unixmail.co.uk> Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 3/18/2010 6:41 AM, Ned Slider wrote: > Julian Yap wrote: >> I'm trying to consolidate some rules I have. >> >> I'm wondering if there's a way to see if multiple types of headers >> exist. >> >> eg. Currently separate rules: >> header CMN_LIST_1 exists:X-Campid >> describe CMN_LIST_1 Mail comes from a common campaign list mailer >> score CMN_LIST_1 0.5 >> >> header CMN_LIST_2 exists:X-Campaign >> ... >> >> header CMN_LIST_3 exists:X-CampaignID >> ... >> >> Any way of combining them into an 'or'? >> >> - Julian >> > > Yes, with a meta rule: > > meta CMN_LIST (CMN_LIST_1 || CMN_LIST_2 || CMN_LIST_3) > And if you want the original 3 rules to run with no score to them, drop the score lines, and add a double-underscore to the front of the rule name. ie: __CMN_LIST_1. This way you can assign all the score to the main CMN_LIST rule.