[Mimedefang] Case in-sentitive matching

Matthew Thomas mthomas at biocontrolsys.com
Wed Apr 14 19:01:54 EDT 2004


-On Behalf Of Ashley M. Kirchner

-     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");
>     }


You should be able to substitute:
$entity->head->mime_attr("content-type.charset") =~ /Windows-1251/i

That will disregard case of the string.

Regards,
Matt Thomas



More information about the MIMEDefang mailing list