This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sophos email appliance how to remove subject information from reply email using regular expression

The below policy does tag incoming email from external email correctly however, when a user replies to external mail the external is still in the subject.  I want the [external ]removed when a person reply's to external mail.  I would like to accomplish this using regular expression if possible.  

 

 



This thread was automatically locked due to age.
Parents
  • Hi Phillip,

    depending on what your trying to do you may find it better to add/delete X-headers rather than modifying the subject lines.   I also noticed the reg-ex may not perform exactly how you like.  something like .

    ^((?!RE:).)*$ 

    that would look for the exact match.. then you could make a rule that is like... if-not exists  regular expression, then remove subject.

     

    adding or searching for the X-header would allow you to more transparently scan the mail .. without trying to scan each message subject..  so rather than use Subject .. have another rule that looks for or removes X-headername  .. 

     

Reply
  • Hi Phillip,

    depending on what your trying to do you may find it better to add/delete X-headers rather than modifying the subject lines.   I also noticed the reg-ex may not perform exactly how you like.  something like .

    ^((?!RE:).)*$ 

    that would look for the exact match.. then you could make a rule that is like... if-not exists  regular expression, then remove subject.

     

    adding or searching for the X-header would allow you to more transparently scan the mail .. without trying to scan each message subject..  so rather than use Subject .. have another rule that looks for or removes X-headername  .. 

     

Children
No Data