[Mimedefang] suggested mimedefang-filter

Mickey Hill mickey at rudolphtire.com
Tue May 14 13:26:40 EDT 2002


>  The "return re_match ..." line in the "sub 
> filter_bad_filename" should
>  read:
>   return re_match($entity,'\.(bat|chm|...|vbe|vbs?|vxd|wsf|wsh)$');

Jason is right; this would allow files with multiple extensions to get
through.  See:

http://lists.roaringpenguin.com/pipermail/mimedefang/2002-April/000899.h
tml

>  "The MIMEDefang HOWTO" has the correct example in chapter 
> 9.6 (filter)
>  and mising "$" in the chapter 10.1 (mimedefang-filter.example).

That example was correct until about two releases ago :)  I have
corrected it to use the current, better method of calling
filter_bad_filename($entity).

-------------------------
Mickey Hill
Rudolph's Inc
2021 Rob Mason Rd
PO Box 69
Murray KY 42071 USA
Phone (270) 753-0686 x124
      (800) 231-2295
Fax   (270) 753-0753
mickey at rudolphtire.com
www.rudolphtire.com


> -----Original Message-----
> From: mimedefang-admin at lists.roaringpenguin.com 
> [mailto:mimedefang-admin at lists.roaringpenguin.com] On Behalf 
> Of Wladyslaw Pietraszek
> Sent: Tuesday, May 14, 2002 11:40 AM
> To: mimedefang at lists.roaringpenguin.com
> Subject: [Mimedefang] suggested mimedefang-filter
> 
> 
> 
>  The example mimedefang-filter file in MIMEDefang v2.11 distribution
>  (examples/suggested-minimum-filter-for-windows-clients) has a small
>  omission which may result in incorrect quarantine on rare occasions
>  (fx. attachmet with the file name ".htaccess" :-).
> 
>  The "return re_match ..." line in the "sub 
> filter_bad_filename" should
>  read:
>   return re_match($entity,'\.(bat|chm|...|vbe|vbs?|vxd|wsf|wsh)$');
>                                                                ^
> 
>  "The MIMEDefang HOWTO" has the correct example in chapter 
> 9.6 (filter)
>  and mising "$" in the chapter 10.1 (mimedefang-filter.example).
> 
>  Regards,
> 
>  W. A. Pietraszek               email: wap at cs.auc.dk
>  Computer Science Dept.	        phone: (+45) 96 35 89 07
>  Aalborg University             fax: (+45) 98 15 98 89
>  Fredrik Bajers Vej 7E , DK-9220 Aalborg, Denmark
> 
> _______________________________________________
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
> 






More information about the MIMEDefang mailing list