On Fri, Apr 29, 2005 at 08:33:13PM +1000, Peter Jones wrote:
:0
* ^Subject:.*\/[^ ].*
* ? echo "$MATCH" |/bin/egrep -if $BLACKLIST
.Junk.Subject/
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-DO-NOT-ERASE-THIS-IS-THE-LAST-LINE!!!
("Dummy" is programming-speak, not an insult intended to
the reader.)
Dallman (who doesn't use any words-blacklists at all!)
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail