[Mimedefang] Recipe Question

Jeff Grossman jeff at stikman.com
Sun Oct 27 11:18:01 EST 2002


I noticed on the site
http://www.roaringpenguin.com/mimedefang/canit/recipes.php3 there are a
few example recipes.  I really like the following one:

$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") {
	return action_bounce("Spam from Korea not accepted.");
    }
}

Which is supposed to block all Korean e-mail.  Where would I put that
recipe on my mimedefang filter?

Also, what would I use to block China e-mail?  And, where might I go to
find the charset's for other languages?

Thanks,
Jeff

p.s.  I don't know if it is just me, but in the past week I have been
getting hit with a lot more spam than usual.  Is anybody else seeing
this?

-- 
Jeff Grossman (jeff at stikman.com)





More information about the MIMEDefang mailing list