Subject: confused by roles

From: Tim Luoma <[email-masked]>
Date: Thu, 12 Apr 2001 21:49:34 -0700 (PDT)

I made this rule

Nickname        = opera
To pattern      = [email-masked]
>From pattern    = [email-masked]
Cc pattern      = [email-masked]
News pattern    = <No Value Set>
Subject pattern = [Opera-users]
Recip pattern   = [email-masked]
Partic pattern  = [email-masked]
AllText pattern = http://web.opera.com/mailman/listinfo/opera-users
Score interval  = <No Value Set>

why doesn't a message with these headers match?

To: [email-masked]
Subject: [Opera-users] Blank Page loads with a link URL
Reply-To: [email-masked]

I checked the FAQ but it seems I'm either the only person who has this
problem or everyone else has some bit of knowledge I am missing.

Thanks
TjL

---

From: Arun Prabhakaran <[email-masked]>
Date: Fri, 13 Apr 2001 10:33:44 -0500 (GMT)

Hi,

   All the options in the rules are logically ANDed. So, only if there is a
match in all the patterns specified below that the role will work.

   So, if u want all the patterns below to match, u have to make that many
roles, each with one pattern.

   Please correct me if I am wrong.

HTH
Arun

---

From: Joel Boonstra <[email-masked]>
Date: Fri, 13 Apr 2001 01:22:23 -0400 (EDT)

>    Please correct me if I am wrong.

Nope, that sounds like my experience, too.  Which brings up a good
question - is there any way to make them OR instead of AND?  That seems
like an intuitive feature to have, but I've never been able to do such a
thing (besides, of course, doing what you suggest and make a different
role for different headers).

[ joel boonstra | [email-masked] ]

---

From: Eduardo Chappa <[email-masked]>
Date: Fri, 13 Apr 2001 09:03:05 -0700 (PDT)

*** Joel Boonstra ([email-masked]) wrote in the pine-info list today:

:) Nope, that sounds like my experience, too.  Which brings up a good
:) question - is there any way to make them OR instead of AND?

If there was a logical OR, then in order for you to have a match you just
need to match one condition. This seems like an improvement in speed, but
if you wanted to have a match that satisfied "p and q", instead of just
"p", you would have to write the former condition after the latter, and
always use the last match that you find. In another words, it would take
longer to find which role to use, since probably your list of roles would
be longer than what it is today, and finding a non-match means that you
have to test all possible conditions.

Since I am a mathematician I can't avoid making this comment, but it's an
old theorem in logic that says that you can express any logical statement
using just two connectors, one of them being negation and the other can be
either "and", "or", "implication", "equivalence", etc. Pine clearly gives
the "and" part, the "not" part is given by the "score interval", more as a
workaround, than as a real "not".

You can also use "or" within a pattern, by separating each condition by a
comma, so if you have something like:

Header Pattern = a, b, c

it is considered a match if either "a", "b" or "c" is found in that
specific header. Be careful too, once I wrote a "," instead of a ".", and
found myself matching more patterns than what I wanted.

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/