procmail
[Top] [All Lists]

Re: What's wrong with my CLICHE recipe?

1998-09-20 20:55:00
Mitsuru Furukawa <furu(_at_)009(_dot_)com> writes:
Please tell me what is wrong with following recipe.
It seems to successfully catch "FREE",
but never "To be removed from" and it's case variations.

Hmm, since you didn't include an example that didn't match, I don't
know whether this is the problem, but your regexp assumes that there's
at least one previous character on the line containing "to be removed
from".

  * ^[^>].*(FREE|[tT]o [bB]e [rR]emoved [fF]rom)

Change that to:

        * ^([^>].*)?(FREE|[tT]o [bB]e [rR]emoved [fF]rom)


Philip Guenther

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