[Mimedefang] Dropping Files

Kelson Vibber kelson at speed.net
Mon Oct 27 13:39:13 EST 2003


At 10:10 AM 10/27/2003, schmaus wrote:
>it also drops other files, like doc and xls.  Can anyone
>explain why this would be happening?
>
>$drop_exts = '(pif|scr|bat)';
>if (re_match($entity, $drop_exts))

This would also match things like "Batch.doc" or "Screenshot.jpg"

You need to anchor the expression to the end - the simplest form would be 
'(pif|scr|bat)$'

However, you should look into past discussions about viruses using invalid 
MIME syntax with filenames that might get parsed one way by MD and another 
by email clients.

Kelson Vibber
SpeedGate Communications <www.speed.net>  




More information about the MIMEDefang mailing list