Mark writes:
>Local eval tests are really very useful. The only thing I do not like, is
>that you have to edit the existing source (EvalTests.pm). I had rather seen
>something like "user_eval:", which is like "eval:", but only looks for the
>subs in, say, UserEval.pm (initialized like EvalTests.pm, but essentially
>empty at distribution). Or is there already a way to "localize" eval tests?

No, there isn't -- yet ;)

We should do this -- and it'd be easy enough to just change
Mail::SpamAssassin to "use" every .pm file found in the rules dirs
(/etc/mail/spamassassin and /usr/share/spamassassin).

Then a local "eval:" test could simply be a matter of creating
a .pm in the /etc/mail/spamassassin dir, containing e.g.

        package Mail::SpamAssassin::PerMsgStatus;
        use Mail::SpamAssassin::PerMsgStatus;

        sub myevaltest {
          my ($self) = @_;
          code...
        }

        1;

But nobody's done up a patch yet.  (hint ;)

--j.


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to