Text Extraction from forwarded messages external

Discussion in 'Exchange Server Questions' started by RangerRick, Oct 10, 2017.

  1. RangerRick


    New Member
    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"
  2. Diane Poremsky

    Diane Poremsky

    Senior Member
    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.

Share This Page