Re: [Mimedefang] How can I block based on file name - not extension

2004-06-24 Thread WBrown
[EMAIL PROTECTED] wrote on 06/24/2004 08:52:28 AM: > This works great. I do not want to add zip to the banned lists, as > zipped files are often sent with a legitimate purpose, however, I do > want to ban certain zip files as they are usually associated with > viruses. For exapmle, I want to

[Mimedefang] How can I block based on file name - not extension

2004-06-24 Thread Mark Penkower
I use the stock code to block certain types of extensions: # This procedure returns true for entities with bad filenames. sub filter_bad_filename ($) { my($entity) = @_; my($bad_exts, $re); # Bad extensions $bad_exts = '(ade|adp|app|asd|asf|asx|bas|bat|chm|cmd|com|cpl|crt|dll|exe|fxp|hlp|hta|