On Fri, Apr 29, 2005 at 08:33:13PM +1000, Peter Jones wrote:
* ^Subject:.*\/[^ ].*
* ? echo "$MATCH" |/bin/egrep -if $BLACKLIST
It seems to me that this is starting to get almost as expensive
as a PERL script?
I doubt it. One could time 1000 iterations of each and see . . .
One particularly important factor, however -- which will
certainly keep me using the PERL script rather than egrep in
this instance -- is that, using egrep, you must ensure that your
blacklist file does NOT end with an empty line (the final word
MUST NOT be followed by a line feed!) or the empty line will
match anything thrown at it. This is a problem for me . . .
Hmm. Okay, how about:
First line of blaclist
Second line of blaclist
. . . .
Fortieth line of blaclist
("Dummy" is programming-speak, not an insult intended to
Dallman (who doesn't use any words-blacklists at all!)
procmail mailing list Procmail homepage: http://www.procmail.org/