procmail
[Top] [All Lists]

Re: filtering question

1996-05-20 17:48:34
On Sun, 19 May 1996, Philip Guenther wrote:
I'd prefer to use:


# Count the number of times the word "test" appears, and subtract the
# number of times "test case" appears.  If the result is positive, then
# there was a "test" without a " case", and it's a match
:0 B:
*  1^1 test
* -1^1 test case
Test

Thanks for your detailed response.  The 1^1 solution works beautifully,
but I'd like to know more about it.  There's nothing on 1^1 in any of
the procmail docs I have access to.  Can you point me to some info?  And
are there other cool undocumented features in Promail?

Dick Moores  rdm(_at_)netcom(_dot_)com

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