From: "adp" <[EMAIL PROTECTED]>
> From: "Matt Kettler" <[EMAIL PROTECTED]>
>
> > 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.

I can think of a rude hackish way to do it. Place your test's score into
the headers as an easily parseable entry. Create a simple eval test to
evaluate (and optionally remove if this is possible and required) the
pasted in header element. It's rude. It's crude. I expect it would work.
In that case I would invoke the "Done is good" clause.

{^_^}

Reply via email to