procmail
[Top] [All Lists]

Score and _AND_

2002-10-08 14:47:57

        I just wandering:  Suppose one wants to score three words and
        s/he wants to be sure that this three words are exist in the text.
        The only way that I can see is:

:0 B
* word1
* word2
* word3
{
        :0 Bfb
        * 1^1 word1
        * 1^1 word2
        * 1^1 word3
        | /do/something/with $=
}

        Now, we can be sure that  $= >= 3  and every word appearances
        at least one time i.e. if  $= == 5  then the word1 could not
        appearance 3 times.

        There is a big deficiency in this recipe - procmail pass twice
        on the data.  Any idea?

Thanks,
 Udi

_______________________________________________
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>