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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment