A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Customize Rules- Include 'AND' rather than 'OR' for specific words



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 8th 06, 03:08 PM posted to microsoft.public.outlook.program_vba
Harrow
external usenet poster
 
Posts: 3
Default Customize Rules- Include 'AND' rather than 'OR' for specific words

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

--
ArborGlade
Ads
  #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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
filtering spam by words in body or buying rules? zero Outlook Express 3 September 1st 06 08:30 PM
Rules - Forwarding Specific Attachements Kenneth in Texas Outlook - Installation 0 July 11th 06 11:30 PM
Enforce Specific Encoding To Messages Arrived From Specific Addres Gil Outlook and VBA 3 April 26th 06 04:00 PM
Moving Specific Inbox Items to a Specific Subfolder (VBA) DevDaniel Outlook and VBA 1 April 11th 06 06:46 AM
create specific rules like all emails other than from HOTM... GG Outlook - General Queries 2 March 20th 06 06:37 PM


All times are GMT +1. The time now is 01:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.