procmail
[Top] [All Lists]

Re: stumped by egrep -f for whitelist

2002-06-21 06:17:53
Sean your comments are enlightening.
According to Professional Software Engineering on Thu, Jun 20, 2002 at 
04:13:17PM -0700:
...

What is the best solution here?

One approach might be to maintain two separate greenlist files - one that 
is plain non-regexp strings, and (a presumably much smaller) one with 
regexps.  Don't hand grep anything more than you want it to be parsing.


yeah soon after I sent this email I also thought of the mentioned
solution.

So the add_to_wl script will check for an exclude list of the
mass domains and if _not_ found will add to the domain_wl as
follows:
(_dot_)*(_at_)domain(_dot_)com
otherwise if this type of domain is found viz.
aol.com, hotmail.com, then the literal non-regex email address
will be added to a email_wl. 

For the former I process with egrep and the later, the look(1) utility
seems to be most suitable. 

(pity about the scalability of egrep -f ; my first encounter)

ciao
-- 
Eric Smith
_______________________________________________
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>