procmail
[Top] [All Lists]

Re: help with mail attachment

2001-09-21 02:23:16
From: suzana <suzana(_at_)kym(_dot_)edu(_dot_)my>

can somebody help me with a recipe that can block out every attachment
(.exe,.pdf,dll) except .doc (since my users might need that)...or maybe
somebody can point me to the right direction? Just a simple recipe that
would block all of the attachments except a selected few. The email
virus attacks have been vicious and I'm new in this.Any hints or
documentations or examples are really welcomed. Thanks!

Suzana,
The list archives are an excellent place to look for this kind of
thing.  Here's a (only slightly altered from what I actually use, because
I build this one into some other dependencies) sample that is
in the archives, the basis for which came from OFL (our fearless
leader, Philip Guenther) last year.  You can edit the extensions
as you wish.


  :0:  $ whitespace in brackets comprises a space and a tab
  * 9876543210^0 ^Content-[-a-z0-9_]+:.*="?[^"]*\.(vb[se]|ws[fh]|hta|shs|\
                  pif|(doc|txt|xls)\.)
  * 9876543210^0 B ?? ^Content-[-a-z0-9_]+:.*($[        ].*)*=[  ]*\
                       ($[      ]+)*"?[^"]*\.(vb[se]|ws[fh]|hta|shs|pif|\
                       (doc|txt|xls)\.)    
  |virus

-- 
Netcom has imploded.  Please now use NOTnetcom.com for mail.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ex-Netcommies:  Mail "forwards" for free forwarding service!
NOT affiliated with EarthLink, Inc.'s Netcom brand identity.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>