[Mimedefang] Interesting anti-HTML filter side-effect
Jim McCullars
jim at info.uah.edu
Mon Sep 22 00:02:01 EDT 2003
On 21 Sep 2003, G. Roderick Singleton wrote:
> Can anyone offer a snippet that will reject ALL html encoded messages? I
The fourth argument to filter() is the MIME type of the part in
question. So if the first two lines of your filter() look like this:
sub filter ($$$$) {
my($entity, $fname, $ext, $type) = @_;
Then try adding this:
if ($type eq "text/html") {
return action_bounce("HTML messages not allowed on this server")
}
HTH...
Jim
More information about the MIMEDefang
mailing list