Return-Path: Delivered-To: apmail-spamassassin-users-archive@www.apache.org Received: (qmail 28552 invoked from network); 3 Mar 2005 19:10:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Mar 2005 19:10:14 -0000 Received: (qmail 57616 invoked by uid 500); 3 Mar 2005 19:10:02 -0000 Delivered-To: apmail-spamassassin-users-archive@spamassassin.apache.org Received: (qmail 57604 invoked by uid 500); 3 Mar 2005 19:10:02 -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 57590 invoked by uid 500); 3 Mar 2005 19:10:02 -0000 Delivered-To: apmail-incubator-spamassassin-users@incubator.apache.org Received: (qmail 57586 invoked by uid 99); 3 Mar 2005 19:10:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of mkettler@evi-inc.com designates 208.39.141.86 as permitted sender) Received: from xan.evitechnology.com (HELO xanadu.evi-inc.com) (208.39.141.86) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Mar 2005 11:10:01 -0800 Received: from mattk-801-567.evi-inc.com (mattk-801-567.evitechnology.com [10.0.4.90]) by xanadu.evi-inc.com (8.12.8/8.12.8) with ESMTP id j23J9roj015017; Thu, 3 Mar 2005 14:09:53 -0500 Message-Id: <6.2.1.2.0.20050303140520.03c02820@192.168.50.2> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Thu, 03 Mar 2005 14:09:52 -0500 To: Steve Dimoff , "Spamassassin-Users (spamassassin-users@incubator.apache.org)" From: Matt Kettler Subject: Re: SA Rule - Matching on "From" AND "Subject" In-Reply-To: <87FA7D7775F8A84B9FD5EAD78EDE751701D4C5C3@usnet-mail1> References: <87FA7D7775F8A84B9FD5EAD78EDE751701D4C5C3@usnet-mail1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.3 (xanadu.evi-inc.com [192.168.50.2]); Thu, 03 Mar 2005 14:09:53 -0500 (EST) X-EVI-MailScanner-Information: Please contact the EVI IT dept for more information X-EVI-MailScanner: Found to be clean X-EVI-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.9, required 5, BAYES_00 -4.90) X-MailScanner-From: mkettler@evi-inc.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N At 01:52 PM 3/3/2005, Steve Dimoff wrote: > I'm running SA 2.63, and I have a rule I would like to create that >would only be a positive number/match if two checks both were matched. > > >I don't want one rule checking "To" and another checking "Subject", I want >to combine to the two rules so that if "To" and "Subject" both match >something then to give it a positive score. Sounds like you want a meta rule. You'll actually need three rules, a header rule, a subject rule and a meta rule that combines them. Of the three, only the meta rule should have a strong positive score. The subject and header rules can also be scored if you want, or name the rule starting with a double underscore (__) and omit the score statement and that rule will become unscored and not visible in the hits list. (this is a common practice, create two unscored rules and a meta rule, and only the meta shows in the hits and has a score statement) Here's a sample meta rule I made that uses body rules, but you can do header rules just as easily: body __PGP_BEGIN_SIG /-----BEGIN PGP SIGNATURE-----/ body __PGP_END_SIG /---END PGP SIGNATURE---/ meta LOCAL_PGP_SIG_ABUSE (__PGP_BEGIN_SIG && !__PGP_END_SIG) score LOCAL_PGP_SIG_ABUSE 0.5 describe LOCAL_PGP_SIG_ABUSE Message has a PGP signature that never ends