Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Match Emails based on text in subject (http://www.outlookbanter.com/outlook-vba/57660-match-emails-based-text-subject.html)

RebekahK20_pontiac via OfficeKB.com September 26th 07 03:35 PM

Match Emails based on text in subject
 
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


Eric Legault [MVP - Outlook] September 26th 07 04:46 PM

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




All times are GMT +1. The time now is 03:25 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-2006 OutlookBanter.com