Re: Rule and Rule

2009-10-11 Thread Karsten Bräckelmann
On Sat, 2009-10-10 at 18:14 -0400, Adam Katz wrote: > > > > > meta NAME rule1 && (rule2a + rule2b + rule2c + rule2d > 2) > > > > When adding rules is it a count of the number of rules or the rule > > > > scores? > > > > It is never the score. > Here's my workaround. It involves some redundanc

Re: Rule and Rule

2009-10-10 Thread Adam Katz
It's essentially Perl logical expression syntax, and basic math expression syntax if you want to count: meta NAME rule1 && (rule2a + rule2b + rule2c + rule2d > 2) >>> When adding rules is it a count of the number of rules or the rule scores? > > It is never the score. > >> I

Re: Rule and Rule

2009-10-09 Thread John Hardin
On Sat, 10 Oct 2009, Benny Pedersen wrote: meta RFC_ABUSE_POST (__DNS_FROM_RFC_ABUSE && __DNS_FROM_RFC_POST) describe RFC_ABUSE_POST Meta: both abuse and postmaster missing on sender domain score RFC_ABUSE_POST 0.01 please put into sandbox if one have access Done. -- John Hardin KA7OHZ

Re: Rule and Rule

2009-10-09 Thread Benny Pedersen
On fre 09 okt 2009 15:03:22 CEST, Marc Perkel wrote Starting to write some SA rules again. What is the syntax for a rule where it's true if two other rules are both true? Need a small example. Thanks in advance meta RFC_ABUSE_POST (__DNS_FROM_RFC_ABUSE && __DNS_FROM_RFC_POST) describe RF

Re: Rule and Rule

2009-10-09 Thread Karsten Bräckelmann
On Fri, 2009-10-09 at 15:34 +0100, Steve Freegard wrote: > Marc Perkel wrote: > > > It's essentially Perl logical expression syntax, and basic math > > > expression syntax if you want to count: > > > > > > meta NAME rule1 && (rule2a + rule2b + rule2c + rule2d > 2) > > > > When adding rules is i

Re: Rule and Rule

2009-10-09 Thread Steve Freegard
Marc Perkel wrote: > > > John Hardin wrote: >> On Fri, 9 Oct 2009, Marc Perkel wrote: >> >> It's essentially Perl logical expression syntax, and basic math >> expression syntax if you want to count: >> >> meta NAME rule1 && (rule2a + rule2b + rule2c + rule2d > 2) > > When adding rules is it a

Re: Rule and Rule

2009-10-09 Thread Marc Perkel
John Hardin wrote: On Fri, 9 Oct 2009, Marc Perkel wrote: It's essentially Perl logical expression syntax, and basic math expression syntax if you want to count: meta NAME rule1 && (rule2a + rule2b + rule2c + rule2d > 2) When adding rules is it a count of the number of rules or the rule

Re: Rule and Rule

2009-10-09 Thread John Hardin
On Fri, 9 Oct 2009, Marc Perkel wrote: Would this be valid? meta NAME ((rule1 || rule2) && rule3) Yes. -- John Hardin KA7OHZhttp://www.impsec.org/~jhardin/ jhar...@impsec.orgFALaholic #11174 pgpk -a jhar...@impsec.org key: 0xB8732E79 -- 2D8C 34F4 6411 F507 13

Re: Rule and Rule

2009-10-09 Thread Marc Perkel
John Hardin wrote: On Fri, 9 Oct 2009, Marc Perkel wrote: Starting to write some SA rules again. What is the syntax for a rule where it's true if two other rules are both true? Need a small example. meta NAME (rule1 && rule2) It's essentially Perl logical expression syntax, and basic mat

Re: Rule and Rule

2009-10-09 Thread John Hardin
On Fri, 9 Oct 2009, Marc Perkel wrote: Starting to write some SA rules again. What is the syntax for a rule where it's true if two other rules are both true? Need a small example. meta NAME (rule1 && rule2) It's essentially Perl logical expression syntax, and basic math expression syntax i

Re: Rule and Rule

2009-10-09 Thread Mike Cardwell
Marc Perkel wrote: Starting to write some SA rules again. What is the syntax for a rule where it's true if two other rules are both true? Need a small example. Thanks in advance Read: http://wiki.apache.org/spamassassin/WritingRules About 2/3rds of the way down the page you'll see a descrip