[Mimedefang] a whacky problem with my filter...

Joseph Brennan brennan at columbia.edu
Thu Mar 27 09:09:01 EST 2003


--On Thursday, March 27, 2003 05:41 -0600 "Brent J. Nordquist" 
<b-nordquist at bethel.edu> wrote:

> 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|pc
>>                                  d|' .
>>                                  '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)$');


Use   'vbs|vxd|wsc|wsf|wsh)\"*$');

to allow a possible doublequote there, right?

Joe Brennan





More information about the MIMEDefang mailing list