procmail
[Top] [All Lists]

combining an external list in a regular expression, possible?

2002-02-13 04:50:09
:0:
* ? grep -if $BLACKLIST
mail-blacklist

I've been mulling over this for quite some time without coming up with
anything.  Is there a way to "combine" recipes that use an external file
like the one above, and a recipe that uses a regular expression, e.g.,

* (http://(www(\.|=2E))?)(4SkiResorts|\
 aboutjcmorris|\
 americanlifestyle|\
 asean-export)(\.com)

What I was hoping to do was have an external list of junk websites
(already close to a thousand) that would be tested, but not have to
repeat the "http://www."; and ".com" parts for each record.  That is,
do something like: "* (http://(www(\.|=2E))?)(`cat $BLACKLIST`)(\.com)".

Any ideas much appreciated.

henry nelson
_______________________________________________
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>
  • combining an external list in a regular expression, possible?, Nelson Henry Eric <=