procmail
[Top] [All Lists]

RE: *.exe

2002-08-09 03:56:48
MAILDIR=$HOME/mail
LOGFILE=procmail.log
VERBOSE=1
#Look at the headers and filter on Content-type:

:0 H
*^Content-type: (multipart/mixed)
{
#
        #Look at the body to find out if there is some .ocb or .vbs 
#or... attached, 
 if yes, send the mail to /dev/null
        #
    :0 B
     *^Content-Disposition: (attachment|inline)
     *filename=".*\.(ocx|vbs|wsf|shs|exe|com|bat|chm|pif|vbe|hta|scr)"
     {
        :0 
        /dev/null
     }
#.... other rules
}
Substitute whatever attachments you don't want but I'm just parannoid!

Simon Powell (Network Manager) 
Interesource Ltd. 
4th Floor,Royex House 
Aldermanbury Square 
London 
EC2V 7HR 


-----Original Message-----
From: procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE]On Behalf Of Atif 
Munir
Sent: 09 August 2002 12:37
To: procmail-users(_at_)procmail(_dot_)org
Subject: *.exe


Hi,
Anyone can give me a script which may be used on pop server to grep
*.exe mails?
Thanks in advance.


--
M.Atif Munir
Linux System Administrator
Nologics (Pvt.) Limited
http://webcarriers.com
137-Kareem Block Iqbal Town
Lahore (Pakistan)


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002

_______________________________________________
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>
  • *.exe, Atif Munir
    • RE: *.exe, Simon Powell <=