[Mimedefang] a whacky problem with my filter...
Brent J. Nordquist
b-nordquist at bethel.edu
Thu Mar 27 06:42:01 EST 2003
On Thu, 27 Mar 2003, alan premselaar <alien at 12inch.com> wrote:
> .txt files to customers were having the files rejected due to the
> following rule in my filter:
>
> return 1 if re_match($entity, '\.(ade|adp|bas|bat|chm|cmd|com|cpl|crt|' .
> 'dll|exe|hlp|hta|inf|ini|ins|isp|js|jse|' .
> 'lib|lnk|mdb|mde|msc|msi|msp|mst|ocx|pcd|' .
> 'pif|reg|scr|sct|shb|shs|sys|url|vb|vbe|' .
> 'vbs|vxd|wsc|wsf|wsh)');
>
> the problem wasn't that they were sending any files of these types, but that
> the filesnames were in japanese. in one case, the filename was "190x40" +
> <japanese text> + .com + <more japanese text> + .txt
Could you just anchor the pattern to the end of the filename? Make the
last line of that:
> 'vbs|vxd|wsc|wsf|wsh)$');
--
Brent J. Nordquist <b-nordquist at bethel.edu> N0BJN
Other contact information: http://kepler.acns.bethel.edu/~bjn/contact.html
More information about the MIMEDefang
mailing list