[Mimedefang] Bad extensions and vCards

David F. Skoll dfs at roaringpenguin.com
Thu May 30 20:31:13 EDT 2002


On Fri, 31 May 2002, Michael McCarthy wrote:

> Why not something like

>      return re_match($entity,
> '\.(ade|adp|bas|bat|chm|cmd|com|cpl|crt|dll|exe|hlp|hta|inf|ini|ins|isp|js|jse|lib|lnk|mde|msc|msi|msp|mst|ocx|pcd|pif|reg|scr|sct|shb|shs|sys|url|vb|vbe|vbs?|vxd|wsc|wsf|wsh|\{[a-f0-9-]+\})[$\s]');

[$\s] does not match "space or the end", but I know what you mean.  I will
think about tightening this up.

Something like:

'(\.($bad_exts)$)|(\.($bad_exts)[^A-Za-z0-9_])'

should be cautious enough without triggering too many false positives.

Regards,

David.




More information about the MIMEDefang mailing list