Text Extraction from forwarded messages external

Outlook version
Outlook 2016 64 bit
Email Account
Exchange Server
#1
All, I was wondering if anyone has a way to perform the following task via Script or 3rd Tool

I have a client that has a rule which marks all external emails with the below text to indicating the email came from a external source. However they would like for the text to be removed when forwarding the message to a client

"This email originated from outside of Company's Network"
 
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
#2
Start with VBA Sample: Do Something When Reply is Clicked then
strReplace = "This email originated from outside of Company's Network"
oitem.body = replace(oitem.body, strreplace, "")

Now... this may screw up pretty hyperlinks - if that is the case, you can either convert all forwards to html by using oitem.htmlbody or check to see if html format and use if statements to use .body if plain text and htmlbody if html format.

if you only need to remove it from forwards, remove the reply and replyall macros from the code.
 

Similar threads

Top