[Mimedefang] Need to bounce emails that contain certain keywords in the body
Kelson Vibber
kelson at speed.net
Mon Apr 19 14:47:09 EDT 2004
At 10:05 AM 4/19/2004, Cormack, Ken wrote:
>if you want to outright reject a message with such text, score the rule
>high enough to trigger your
>filter to reject or quarantine the message, as desired.
Or have MD look through $names post-SA-check for MY_RULE_1 and act on
that. This is particularly useful if you want to treat it differently from
other high-scoring spam.
Something like:
# Check whether the message triggered MY_RULE_1
if ($names =~ /\bMY_RULE_1\b/) {
# Do something with the message
}
(The \b will match whether the rule is at the beginning of the list or
surrounded by commas, and prevent it from matching MY_RULE_10 or NOTMY_RULE_1.)
Kelson Vibber
SpeedGate Communications <www.speed.net>
More information about the MIMEDefang
mailing list