procmail
[Top] [All Lists]

Re: Word Filter

1997-02-24 22:09:39
On Mon, 24 Feb 1997 bts8(_at_)netcom(_dot_)com wrote:
:0 HB:
*(good luck totem|get rich|wealthy retirement|make money|free info|\
        |free money)
"Garbage Phrase"

Your condition has inadvertently included a match to whitespace, after
"info|" and before "|free". 

This should work:

:0HB:
* (good luck totem|get rich|wealthy retirement|make money|free info|\
free money)
"Garbage Phrase"

You could also restrict the condition a bit more with "\<" and "\>" 
to delimit the begining and end of each alternative phrase to be
'words', that is, not parts of words.

:0HB:
* \<(good luck totem|get rich|wealthy retirement|make money|\
free info|free money)\>
"Garbage Phrase"

David Hunt <dnhunt(_at_)rain(_dot_)org>


<Prev in Thread] Current Thread [Next in Thread>