procmail
[Top] [All Lists]

Re: blocking certain attachments

2001-02-15 07:42:30
on 2/13/01 4:25 PM, Michael J Wise at mjwise(_at_)kapu(_dot_)net said:
I developed the following, along with a few others on some SysAdmin and
AntiSpam lists:

:0
* ^Content-type: (multipart/mixed|application/octet-stream)
{
:0 HB
* ^Content-Disposition: attachment;
* filename=".*\.(exe|hta|pif|scr|shs|vbs|vbe|wsf|wsh)"
{
...
}
}

You might want to replace filename with just name. Microsoft Entourage for
the Mac uses only name=filename.ext instead of filename=.

-- 
Ryan Collins             Kenton City Schools Technology Coordinator
collinsr(_at_)kenton(_dot_)k12(_dot_)oh(_dot_)us              
http://www.kenton.k12.oh.us/
Help Desk- http://www.kenton.k12.oh.us/helpdesk/

"If you assume there there's no hope, you guarantee there will be no hope.
If you assume that there is an instinct for freedom, there are opportunities
to change things." 
-Noam Chomsky 


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail