In my sub filter, I have the following three lines:
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");
}
...which successfully bounces anything matching that charset. However, it's case sensitive. Those that come in as "windows-1251" still get through. Is there an easy way to match for both, without having to duplicate those three lines simply to add the lowercase version?
-- W | I haven't lost my mind; it's backed up on tape somewhere. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
_______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

