Friday, November 6, 2009

Macro: How to have find emails that match a specific email address?

I have some script that compares a string to a "mailitem.to", however this gets screwed up if person uses a display name? Ideally I want to filter emails by domain, such as the following pseudo code:





if mailMessage.to like "*@yahoo.com*"





move to folder xyz.











I already have the code necessary to direct the message to the correct folder.

Macro: How to have find emails that match a specific email address?
It depends on what language you're writing it in, but a regular expression (in any language) can find the domain name easily.

survey research

No comments:

Post a Comment

 

email address Copyright 2008 All Rights Reserved Baby Blog Designed by Ipiet | Web Hosting