At 10:11 2002-05-06 -0400, Matt Garretson did say:
Professional Software Engineering wrote:
> * ? grep -A1 -i ^Content-Type: | grep -i name | \
> egrep -v -i \.\(doc\|xls\)\"?\;?$
* $ content-[^:]+:${WS}*.+(\<)*(file)?name${WS}*=${WS}*\/.+\.${BAD_EXEs}
A couple of very KEY differences here is that the grep invocation I
provided specifically looks for lines NOT matching the extensions that are
allowed by that user (your expression expects to have ALL of the disallowed
extensions - this might work for isolating PC viruses, but does nothing to
say "DOC and XLS are okay, but everything else is not". The other
difference is that my expression was still anchored to the end of the line,
so that the extension would be spotted as an extension, not as an internal
dotted name component.
I don't claim my grep invocation is perfect, but it should be viable for
the need which was presented.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail