procmail
[Top] [All Lists]

Re: Virus filter

2003-08-22 01:49:00
On Friday, Aug 22, 2003, at 01:29 Canada/Mountain, Frank Nørvig wrote:
I have a virusfilter with the following recipe:
    *  ^Content-Disposition: attachment;
    *filename=.*\.(scr|lnk|vbs|swf|shs|com|pif|bat|src|wfs|vbe|wsh|hta)

      * ! name[         ]*[*]?[         ]*=.*.\.zip$

How can I correct the script so that it only checks the file-extension and not the whole filename?

* filename=.*\.(scr|lnk|vbs|swf|shs|com|pif|bat|src|wfs|vbe|wsh|hta)$

but not that the "name[ ]*[*]?[ ]*=.*.zip$" construction is going to catch more.

--
and I lift my glass to the Awful Truth / which you can't reveal to the Ears of Youth / except to say it isn't worth a dime



_______________________________________________
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>