Syntax for using logical 'or' or 'and' in Rules

J

Joseph Guerra

What is the syntax for using 'and' or 'or' in Rules. Are the rules case
sensitive? For example I get lots of spam about Car Warrantles, Anti-aging
products, Lose those pounds, get free Credit Report, and etc.

I would like to setup rules to move to the Junk folder like

Here is each separate rule :

Rule 1 : if "Credit" and "Report" then move
Rule 2 : if "Beautiful" and "Lawn" then move
Rule 3 : if "Lose" or "Rid" and "pounds"

Thank you.
 
B

Brian Tillman [MVP - Outlook]

What is the syntax for using 'and' or 'or' in Rules. Are the rules case
sensitive? For example I get lots of spam about Car Warrantles, Anti-aging
products, Lose those pounds, get free Credit Report, and etc.

I would like to setup rules to move to the Junk folder like

Here is each separate rule :

Rule 1 : if "Credit" and "Report" then move
Rule 2 : if "Beautiful" and "Lawn" then move
Rule 3 : if "Lose" or "Rid" and "pounds"

Selecting more than one condition is an AND, so you can look for string1 in
the subject AND string2 in the sender's address by selecting both the "with
the specified words in the sender's address" and "with the specified words in
the subject" conditions. Within a single condition you can look for ORed
strings. You can't AND the logic within a single condition. That requires
two rules. See this:
http://groups.google.com/group/microsoft.public.outlook/msg/46292dddbdfa4336

So, your examples can each be implemented with two rules. For the third
example, you'd first look for "pounds" and then the second rule would add the
"lose or rid".
 
J

Joseph Guerra

Thanks Brian!

Are the rule operands case sensitive? For example I would like to trigger
on "Free Credit Report" or "Free CreditReport" or "Free Credit report".
 
J

Joseph Guerra

Thanks again, Brian.

I have read your article about using 2 rules next to each other to perform
an AND function.

I have tried it and it works!

I suggest some clarifications to your procedure for your review :

To perform a <check for phrase one> and <check for phrase two> then <perform
action>, follow these steps :

1. Start with a Blank Rule, and create Rule 1 to <check for phrase one> and
<move to category X> (I used the Blue Category).

2. create Rule 2 to <check for phrase two> and <if in Category X> then
<perform action>

Note : Since rules are performed in the order shown, do Step 2 first to
create Rule 2. Then do Step 1 to create Rule 1. The order of execution in
the Rule List will then be Rule 1 followed by Rule 2.
 
J

Joseph Guerra

Thanks yet again, Brian.

Is there a way to change the order of execution in the Rules List? That
would make implementation of the AND function easier to implement.
 
B

Brian Tillman [MVP - Outlook]

Thanks yet again, Brian.

You're welcome.
Is there a way to change the order of execution in the Rules List? That
would make implementation of the AND function easier to implement.

Nope. Always top to bottom. You can create your rules in any order and then
arrange them properly to do the job, though, so you don't have to create them
in a particular order.
 
B

Brian Tillman [MVP - Outlook]

Are the rule operands case sensitive? For example I would like to trigger
on "Free Credit Report" or "Free CreditReport" or "Free Credit report".

I believe they are not case-sensitive, but they are sensitive to word breaks,
so "Free Credit Report" and "Free CreditReport" in your avove example are not
the same, but "Free Credit Report" and "Free Credit report" are.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top