Jason Marshall writes on 21 October 1997 at 23:20:59
[...]
My question is, if I'm trying to match a lot of items (about 1900 of them,
and growing), is it "better" to have one recipe for each of the 1900
items, or one recipe with all items |'ed together?
A small example... Would it be "better" this way: (sorry about the long
lines)
better still would be to abandon your domain-name matching scheme in
favor of more general heuristics.
:0 h
* ^(To:|From:|Reply-To:|Comments:
Authenticated).*@(validreturn.com|.*\.validreturn.com)
procmail/spamfile
[...]
:0 h
* ^(To:|From:|Reply-To:|Comments: Authenticated)(_dot_)*(_at_)\
(validreturn.com|.*\.validreturn)|\
(audioforum.com|.*\.audioforum)|\
...insert 1900+ more lines here..
procmail/spamfile
a single recipe is going to be quicker than 1900+; you might need to
increase LINEBUF with large regexps.
Other people that use the "match domain" method do some kind of a grep
on a file; if you're going to take this route, it might be something
you want to consier.
Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>
http://www.bristol.com/~DanS
Bristol Technology B.V. +31 33 450 50 50, ...51 (FAX)
Amersfoort, The Netherlands {info,jobs}(_at_)bristol(_dot_)com