At 06:01 PM 8/8/2003 +0200, Cahya Wirawan wrote:

I can write my rule in local.cf or in users rules, but if I want
tp have my own eval function I have to write it directly on EvalTests.pm .
Since this file will be rewitten if I upgrade the SA, is there any plan
to have a local/users EvalTests.pm like local.cf for rules?


I'll answer this by quoting Justin Mason's answer to this exact same question on 7/30/2003 under the subject "[SAtalk] local eval rules".

Next time you might consider searching a bit.


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 ;)





------------------------------------------------------- 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