procmail
[Top] [All Lists]

blocking virii/filtering attachments

2001-11-29 05:49:21
Hi,

I've been looking through the archives and I've found a few rules to filter
file types (such as .pif etc.) using procmail.
Unfortunately, none of them seem to work!
I've tried the monster script at

http://www.johncon.com/john/archive/quarantine.outlook.attachments.txt

but that gives me:
procmail: Invalid regexp
($[   ]+)*=[  ]*($[   ]+)*".*\.(a(d[ep]|r[cj]|s[dmxp]|u|vi)|b(a[st]|mp|z[0-9
]?)|c(an|hm|il|lass|md|om|(pp|\+\+)?|sv)|d(at|e?b|ll|o[ct])|e(ml|ps?|xe)|h(l
p|t(a)|(pp|\+\+)?)|in[ci]|j(ava|se?|sp|tmpl)|kbf|l(ha|nk|og|yx)|m(d[abew]|[3
2])|s[ip])|ocx|p(a(tch|s|if)|c[sx]|df|h(p[0-9]?)|if|[lm?]|n[gm]|[po][st]|p?s
)|r(eg|pm|tf)|s(c[rt]|h([bs])|lp|ql|ys)?|t(ex|iff?)|u(pd|x)|vb[es]?|w(av|m[s
zd]|p(d|[0-9]?)|s[cfh])|x(al|[pb]m|l[stw])|z(oo))(\..*)?"[       ]*($[   ]+)
*$"

in the log, and i've tried the ones in messageid
http://www.rosat.mpe-garching.mpg.de/mailing-lists/procmail/2001-11/msg00356
.html

But these give me the following errors:

 Subject:

  Folder:
                        1340

(if i paste the script 'as is') and

 Subject: procmail -- confirmation of subscription -- request 970073

  Folder: Content-[-a-z0-9_]+:.*=[]*?[^]*.ad[ep]|ba[st]|c(hm|md|om|pl|r
2755

if I turn the script into 3 lines...

Any ideas why?
Cheers,
Robin Edgar


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