[Mimedefang] Why is .js files being stopped.

Andrew Watkins andrew at dcs.bbk.ac.uk
Thu Oct 6 08:47:47 EDT 2005


Hi,

I am a bit confused why .js attachments (application/x-javascript) are being
stripped out of e-mails, since I do not see any reference to the extension 
in the filters.

Let me explain:

The routine "sub filter_bad_filename" has the following "bad_exts"

$bad_exts = 
'(ade|adp|app|asd|asf|asx|bas|bat|cmd|com|cpl|crt|dll|exe|fxp|hlp|hta|hto|inf|in
i|ins|isp|jse?|lib|lnk|mde|msc|msi|msp|mst|ocx|pcd|pif|prg|reg|scr|sct|shb|shs|s
ys|vb|vbe|vbs|vcs|vxd|wmd|wms|wmz|wsc|wsf|wsh|\{[^\}]+\})';

So, I don't see why "jse?" is stopping the files, since if I remove "jse?" 
from the list it does not block the attachments. 

I guess it is my understanding of how how "re_match" is working which is to
blame here?

Thanks

Andrew



More information about the MIMEDefang mailing list