View Single Post
  #2  
Old December 11th 06, 07:37 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Customize Rules- Include 'AND' rather than 'OR' for specific words



Rules can't do that for you, but you could write a script and call it via
the Run-a-Script-Rule. Use the Instr function then to search for the
criterias and the Move function to move e-mails.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am Fri, 8 Dec 2006 06:08:01 -0800 schrieb Harrow:

Hello,
I am looking for a rule (or some code) which will allow me to delete
incoming mail if a Combination of specific words, appears in the body. I

am
getting a lot of spam about get rich quick stock purchases.
EXAMPLE
I would not want to delete an email that contained:
'price' OR 'certainty' OR 'winner'

But I would want to delete an email if it contained:
'price' AND 'certainty' AND 'winner'

Regards

Ads