[Mimedefang] Gibberish in the subject line

Chad Stalvey chads at comcast.net
Tue Jul 16 13:36:01 EDT 2002


So could you also do something like:

sub filter_begin {
	if ($Body = Porn) {
		return action_bounce("Porn In Body");
	}
}



?????



-----Original Message-----
From: mimedefang-admin at lists.roaringpenguin.com
[mailto:mimedefang-admin at lists.roaringpenguin.com]On Behalf Of David F.
Skoll
Sent: Tuesday, July 16, 2002 7:51 AM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] Gibberish in the subject line


On Tue, 16 Jul 2002, Steve Ladendorf wrote:

> Has anyone written a rule to block email with gibberish in the Subject
> line like so..

> Subject: ¬[?] |h?Óºô¯¸ |h€H€Wºô |h?Ó¶l¥óªººô¸ô¥D?÷ ¥i¥H10€ÀÄÁ€º·d©w
> vFtBgl3ki3895s3BhB1LuV

You could match 8-bit characters.  Something like:

sub filter_begin {
	if ($Subject =~ /[\x80-\xFF]{7}/) {
		return action_bounce("8-bit subject");
	}
}

will drop subjects with 7 or more consecutive high-bit-set characters.

Another option is to check the character set; see
http://www.roaringpenguin.com/mimedefang/canit/recipes.php3 for an example
which drops Korean mail.

> I can't imagine that there is any reason to accept a message that contains
> characters like "Ó¶l¥óªººô" in the header.

Perhaps if you speak Korean, there is.

--
David.


_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang




More information about the MIMEDefang mailing list