Any one know if, without (or even with) writing an eval test, is there a way to make something similar to an array for tests that match? I have about 100 tests for h1d1ng w0rds w1th numb3r5 and l3tt3rs. I'd like to have something that would count how many got hit and then make a score based off of that. Say for instance if 4 hit I could say with 50% certainty that the message is probably spam and give it a score of 1.8, 6 of them hit I could say with 75% probability that it's spam and give it a score of 3.5, etc, etc. With even just 5 rules you're looking at tons of combination meta tests that would be required to do this.
Starting with 2.50, meta tests can be arithmetic, not just boolean.
So you can do something like this, to fire off if more than 4 of these 6 tests match:
meta LOCAL_MORE_THAN_FOUR_TESTS ( (TEST1 + TEST2 +TEST3 + TEST4 + TEST5 +TEST6) > 4)
This is considerably simpler than trying to express every combination in boolean type meta rules, and should do exactly what you want.
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk