View Single Post
  #2  
Old September 26th 07, 04:46 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Match Emails based on text in subject

This wouldn't be terribly difficult. You can probably code the move action
for incoming messages along with trapping the task assignments by calling a
script from a rule:

How to create a script for the Rules Wizard in Outlook:
http://support.microsoft.com/default...;en-us;q306108

Or code the entire thing and bypass the Rules Wizard altogether:

How to create a custom rule in Outlook 2000 by using Visual Basic for
Applications:
http://support.microsoft.com/Default.aspx?kbid=235852

You will most certainly need to obtain MAPIFolder references to your
destination folders to use with any Item.Move methods, and also to inspect
the Items collection to find related e-mails using matches on object property
values by way of the Restrict method.

Let me know if you have any more questions.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"RebekahK20_pontiac via OfficeKB.com" wrote:

Hello. I have a rule in place to move all messages containing certain
subjects to a seperate folder. For the incoming task assignment, and the same
folder for the task acceptance notice. I know need to have outlook find the
matched emails applying to the same task id # and delete those, leaving only
the un assigned items?

Is there any easy way to do this?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...g-vba/200709/1


Ads