Title: Re: And/Or in Rules
On 1/4/02 5:42 PM, I wrote:

          Run that from a rule on <all messages> unless you can think of a simple filter to narrow
          it down which all of the above criteria will meet..


Actually, that was just an example to show you how complex scripts can be, if needed. That would also be the easiest solution if you just need to run it once on a folder. But if you need this sort of complexity running on incoming messages, you're a lot better off having several different rules on different criteria running different scripts if need be. If there's only one script for all of this, each message has to wait its turn to use the script, so it will take a long time to download messages. In the exact case above, it would certainly be better to have one rule if <account is A> running the first bit, and another rule if <account is B>And for B, you really could have two separate rules

1.  <if all criteria are met>

    (account is B) and (sender contains some_domain.com) and (From is not My Mother)

2. <unless all criteria are met>

    (account is B) and (sender contains some_domain.com) and (From is not My Mother)

  
and you wouldn't need scripts for either one; just do the relevant actions.

But

    <if any criteria are met>

    account is A

Then
    
    <Run AppleScript>

and run the "first part" of the script, rounding it off with an 'end if'.


--
Paul Berkowitz

Reply via email to