[Mimedefang] Content filtering withou spamassasin? -- solved
Murat Isik
muratisik at megatek.com.tr
Mon Feb 9 18:26:11 EST 2004
I would like to thank anybody who helped and especially Mr.Jonas Eckerman
for the code that does it. This one effectively and successfully works, I
hope it helps some other newbei searching the forums in the future:
("hastalavista" is the word to catch, without the "")
if (open (INF, "./HEADERS")) {
my $bad = 0;
while (my $line = <INF>) {
$line =~ s/\n//g;
if ($line =~ /^Subject:\s+.*hastalavistababy.*$/) {
$bad = 1;
last;
}
}
close(INF);
return action_bounce('Unwanted Subject') if ($bad);
}
if (open (INF, "./INPUTMSG")) {
my $bad = 0;
while (my $line = <INF>) {
$line =~ s/\n//g;
if ($line =~ /hastalavistababy/) {
$bad = 1;
last;
}
}
close(INF);
return action_bounce('Unwanted Body') if ($bad);
}
Right above
# Virus scan
if ($FoundVirus) {
in filter_begin.
Have a nice day.
Murat Isik
More information about the MIMEDefang
mailing list