[Mimedefang] Re: Filtering Based On Results of Spamassassin
Kelson Vibber
kelson at speed.net
Mon Mar 3 14:38:47 EST 2003
Jeffrey Thompson <jeffrey at thompsonic.com> wrote:
>I can call spam_assassin_check($hits, $required, $tests, $report) and
>then do a regular expression scan on $report for PORN_4 or HOT_NASTY.
><snip>
>1) Is there a better way?
If you're looking for specific rules, you can use the index function - i.e.
something like
if (index($report, 'PORN_4') != -1)
My understanding is that this is more efficient than a RE - but of course
if there were rules with names like "NOT_PORN_4" (I don't think there are)
it would still trigger.
Kelson Vibber
SpeedGate Communications <www.speed.net>
More information about the MIMEDefang
mailing list