cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1537
Views
0
Helpful
5
Replies

Is there a field length restriction when using edit-body-text

Ian Fox
Level 1
Level 1

What are the limitations with using edit-body-text if any? I am trying to replace a long piece of text in the body of an email and wondered if there was a limitation in the field length when putting in the first parameter. I am looking to replace the following:

*********************************************

" This message originates from outside our organisation. Consider carefully whether you should click on any links, open any attachments or reply. If in doubt, forward to ~ xxxxxxxx"

*********************************************

Is there a way of doing this with regex?

5 Replies 5

Robert Sherwin
Cisco Employee
Cisco Employee

Suggestion may be to just replace the body-text that you are after with a minimum change, and then also insert a header to place your overall message/notification...

add-heading(heading-name)

Add disclaimer text as a heading to the message. See “Message Disclaimer Stamping” in the “Text Resources” chapter for more information.

TechNote related to edit-body-text:

http://www.cisco.com/c/en/us/support/docs/security/email-security-appliance/118454-technote-esa-00.html

-Robert

Thanks for the reply Robert but still a bit confused. So how I want this to work is that all inbound mail from the internet puts the disclaimer on as in my original post with the asterixes. What I am struggling with is that when we reply to that email we want the Ironport to search the body of the mail for that disclaimer and remove it.

Does what you suggest cover that and if so I probably need more details on the edit-body-text command.

Thanks

Just a bit more detail. The filter I am using is:

Strip_Disclaimer: if recv-listener == "OutgoingMail" {
                      edit-body-text("\\**\\nThis message originates.{3,}\\n\\**", " ");
                  }

This seems to pick up the correct data as in the mail logs I see:

MID 33309 rewritten to MID 33310 by edit-body-text filter 'Strip_Disclaimer'

But when the mail is received the text is unchanged.

So I am slowly getting further with this. The text is getting stripped out of the text/plain part of the mail but not out of the txt/html part so unless I send the mail in plain text it remains.

Any ideas on how I can strip it out of the html part without converting to plain text?

exMSW4319
Level 3
Level 3

If the false-positive rate on the filter is low, you might simply add some text to the warning advising recipients to remove the warning if replying then block the text on outbound mail.

In my case my FP rate is too high for that :-(