Fwd: [Mimedefang] Blocking based on charset?

Mitch DSouza mitch at 0bits.com
Sun Sep 14 09:10:01 EDT 2003


Something like this in filter() in /etc/mail/mimedefang-filter should do it:

if (($type eq "text/plain") and $entity->head->mime_attr("content-type.charset") eq "windows-1251") {
	return action_bounce("Charset windows-1251 not accepted here");
}

See
	man MIME::Head

for more info.

Mitch

-------- Original Message --------
Subject: [Mimedefang] Blocking based on charset?
Date: Sun, 14 Sep 2003 03:40:02 -0600
From: Ashley M. Kirchner <ashley at pcraft.com>
Reply-To: mimedefang at lists.roaringpenguin.com
Organization: Photo Craft Laboratories, Inc.
To: mimedefang at lists.roaringpenguin.com


    I'm getting a lot of spam messages that have 'Content-Type:
text/plain; charset=windows-1251' specified in them, and the message is
written in Russian.  Is there some way of blocking these?  They're all
coming from different US based addresses, so I can't just block say .ru
for it.




More information about the MIMEDefang mailing list