Need to create a simple rule

D

Daniel Mazur

I need to create a rule that automatically forwards email with several
specified words in the message body to a folder. I have successfully
created rules that moves mail with any of several words specified, but that
is not what I am trying to do with this new rule. For example, if I input
words "cat" and "ball" and "farm", I want to move the email to a folder ONLY
if ALL of the words are in the body, not if just one or two are there.


It seems like a simple function, but in Rules Wizard, when I select "with
specific words in the body", after I input each word, the word "or" is
automatically generated. It seems what I need is an "and".

Any suggestions?

Outlook 2003
XP Pro
 
F

F. H. Muffman

Daniel Mazur said:
I need to create a rule that automatically forwards email with several
specified words in the message body to a folder. I have successfully
created rules that moves mail with any of several words specified, but that
is not what I am trying to do with this new rule. For example, if I input
words "cat" and "ball" and "farm", I want to move the email to a folder
ONLY if ALL of the words are in the body, not if just one or two are there.


It seems like a simple function, but in Rules Wizard, when I select "with
specific words in the body", after I input each word, the word "or" is
automatically generated. It seems what I need is an "and".

Any suggestions?

Outlook 2003
XP Pro


How many words is 'several'?

The normal solution is to create a single rule for each word whose action is
to do something to the message that can all be acted upon. IOW, first rule
checks for word 1 and, if present, sets the category to RULEFIRE. Second
rule checks for word 2 and sets the flag to Orange. Third rule checks for
word 3 and sets some other property. Last rule checks for all the
properties that got set and if all of them are set, does what you want (and
probably clears all the other properties).

If it's a lot of words, that's obviously a little messy, so I'd probably try
a code based solution which, if you aren't comfortable writing code, might
not be easy. http://www.outlookcode.com is the first reference I usually
hit.
 
B

Brian Tillman

Daniel Mazur said:
I need to create a rule that automatically forwards email with several
specified words in the message body to a folder. I have successfully
created rules that moves mail with any of several words specified,
but that is not what I am trying to do with this new rule. For
example, if I input words "cat" and "ball" and "farm", I want to move
the email to a folder ONLY if ALL of the words are in the body, not
if just one or two are there.

Here's an example. Extend it to fit your conditions.
<http://groups.google.com/group/microsoft.public.outlook/msg/46292dddbdfa4336>
 

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