[Mimedefang] Rule Not Working
Jeff Grossman
jeff at stikman.com
Thu Oct 31 10:11:01 EST 2002
I have the following rule in my mimedefang-filter under the Filter section:
$head = $entity->head;
$charset = $head->mime_attr("content-type.charset");
if (defined($charset)) {
$charset =~ tr/A-Z/a-z/;
if ($charset eq "ks_c_5601-1987" or
$charset eq "euc-kr" or
$charset eq "iso-2022-kr" or
$charset eq "big5" or
$charset eq "GB2312") {
return action_bounce("Foreign spam not accepted. Please contact
Postmast
er for details.");
action_notify_administrator("Foreign spam message rejected.");
}
}
But, I just received the following e-mail. Shouldn't this rule block this
e-mail?
Return-Path: <root at maydo.com>
Received: from maydo.com ([61.144.144.50])
by apple.stikman.com (8.12.6/8.12.6) with ESMTP id g9VA7C7o013561
for <jeff at stikman.com>; Thu, 31 Oct 2002 02:07:15 -0800
Message-Id: <200210311007.g9VA7C7o013561 at apple.stikman.com>
From: "maydo" <root at maydo.com>
Subject: ***SPAM*** =?GB2312?B?xvPStb2ozfi6w8/7z6KjqMPAtry/xry8o6mjoQ==?=
To: jeff at stikman.com
Content-Type: text/html;charset="GB2312"
Reply-To: root at maydo.com
Date: Thu, 31 Oct 2002 18:09:45 +0800
X-Priority: 3
X-Mailer: Foxmail 4.2 [cn]
Thanks,
Jeff
--
Jeff Grossman (jeff at stikman.com)
More information about the MIMEDefang
mailing list