----- Original Message ----- From: "Matt Kettler" <[EMAIL PROTECTED]> To: "adp" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, May 26, 2004 3:43 PM Subject: Re: Adding my own rules and scores to SA
> At 04:09 PM 5/26/2004, adp wrote: > >I want to create a custom test that we can use with SA. > > Ok > ... > >need to modify the SA source, or is there another (and cleaner) way for an > >outside test to show up in SA's spam_level and spam_report? > > > Wait, why are you trying to do this via dynamic insertion at the perl code > level? We are calling the SA module from a larger Perl program. The flow goes like this: we eval an email against our test we eval the email against SA we add the two scores together I'd like to just combine our score with SA at the SA-level, rather than having to play around with spam_level, etc. that we get from SA. > Why not just edit local.cf and add a rule? > > If you need your rule to be perl code, add to evaltests.pm and have the > local.cf rule call it. Because we are calling SA, not the other way around. Perhaps there is a way to expose our test score into evaltests.pm.
