I have emails that I get that have a generic subject line like this: You have received a new notification from ABC
Also in that email, there is body text like this:
Team: NA Inventory
Division: American Division
I have set up a rule to identify the "You have received a new notification from ABC" I have that rule run a script where I can change the name to something I set like this: objMail.subject = "test done"
but I'd like to use that body text to rename the subject line like this:
You have received a new notification from ABC -- American Division -- NA Inventory
Does anyone have an idea how I would do that, or some starter tips to get me going?
I think your question is how to extract the keyword form mail body text. If so, use VBScript.RegExp
to extract keywords from mail body objMail.Body
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.