Title: Re: And/Or in Rules
On 1/4/02 5:06 PM, "Adam Bailey" <[EMAIL PROTECTED]> wrote:
> On 1/4/02 2:27 PM, Paul Berkowitz <[EMAIL PROTECTED]> wrote:
>
>> On 1/4/02 10:07 AM, "Adam Bailey" <[EMAIL PROTECTED]> wrote:
>>
>>> Is there any plans to add and/or (and, of course, skip to line #) to rules
>>> in Entourage? This is one of the few missing features from Emailer that is
>>> really crimping some of my more complex actions.
>>
>> It certainly would be nice. The problem apparently relates to the visual
>> representations for all the branchings that would be necessary, in
>> Entourage's Rules and Custom View method of presenting criterion choices to
>> the user. I trust it will come some day.
>
> IMO, the UI in Emailer -- while not elegant -- worked perfectly fine.
>
>> In the meantime -- every possible combination of AND and OR which you can
>> imagine, and then some, for every criterion, can be done via applescript,
>> which can be run from a rule. What did you have in mind?
>
> Well, this for example.
>
> If Account is A
> If From is b
> And subject is c
> Or if From is d
> And subject is e
> Or if Sender is f
> And subject is g
> Then file, set category, etc.
>
> My Emailer rules are *full* of these.
Yup. that's how it is. It's too bad they went backwards in this respect in OE and we've still got it in Entourage.
tell application "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
set {theAccount, theSubject, theSender} to theMsg's (account, subject, sender}
set {theName, theAddress} to {display name, address} of theSender
if name of theAccount is "A" then
if (theName is "b" and theSubject contains "c") or (theName is "d" and theSubject contains "e"} or (theAddress is "f" and theSubject contains "g") then
set category of theMsg to {category "Ridiculous"}
move theMsg to folder "Whatsis" of folder "Whosits"
else if theAddress contains "yahoo.com" then
set category of themsg to {category "Junk"}
move theMsg to folder "Junk"
end if
else if name of theAccount is "B" then
if theAddress contains "@some_domain.com" and theName is not "My Mother" then
set account of theMsg to POP account "My Other Account"
set category of theMsg to {category "Good News", category "very personal"}
else
set account of theMsg to POP account "A"
move theMsg to folder "Forget About It"
end if
end if
end tell
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..
--
Paul Berkowitz
- And/Or in Rules Adam Bailey
- Re: And/Or in Rules Paul Berkowitz
- Re: And/Or in Rules Allen Watson
- Re: And/Or in Rules Adam Bailey
- Re: And/Or in Rules Paul Berkowitz
- Re: And/Or in Rules Paul Berkowitz
