Bob Apthorpe <[EMAIL PROTECTED]> writes: Just an aside to Theo: I take your point about using Mail::SpamAssassin::Conf more but I will say it would have been a very long time before I put this together from reading that.
Its always the same problem with documentation... too few examples. But of coures an example for everyones need would make it untenably long > Will this work?: > > header To_Newsguy_Not_Reader To =~ /(?<!reader)[EMAIL PROTECTED]/i > describe mesg to newsguy recipient but not reader > score To_Newsguy_Not_Reader 6 Yup, that does work and testing both ways using spamd, against some 64 messages and 3 runs each, seems to indicate (with just simple `time' tests on a non-busy os) they are about the same time wise. At least on my choice of messages. (all spam but only 15 match this partituclar target rule) With slick regex [ header To_Newsguy_Not_Reader To =~ /(?<!reader)[EMAIL PROTECTED]/i score To_Newsguy_Not_Reader 6 ] -- real 0m9.871s user 0m1.990s sys 0m0.610s real 0m9.878s user 0m1.870s sys 0m0.780s real 0m9.846s user 0m1.980s sys 0m0.630s With 3 part meta rules: [ header __To_Newsguy To =~ /[EMAIL PROTECTED]/ describe To newsguy (for a meta combination rule) score To_Newsguy 1 header __To_Newsguy_Reader To =~ /[EMAIL PROTECTED]/ describe To reader at newsguy (for a meta combination rule) score To_Newsguy_Reader 1 meta To_Newsguy_Not_Reader __To_Newsguy && !__To_Newsguy_Reader describe mesg to newsguy recipient but not reader score To_Newsguy_Not_Reader 6 ] -- real 0m9.842s user 0m1.870s sys 0m0.700s real 0m9.861s user 0m1.970s sys 0m0.590s real 0m9.903s user 0m1.930s sys 0m0.700s
