Cisco Cisco Email Security Appliance C170 Guia Do Utilizador

Página de 1140
 
9-64
Cisco AsyncOS 8.5.5 for Email Security User Guide
 
Chapter 9      Using Message Filters to Enforce Email Policies
  Message Filter Actions
The following example shows a URL removed from a message and replaced with the text, ‘URL 
REMOVED’:
The following example shows a social security number removed from the body of a message and 
replaced with the text, “XXX-XX-XXXX’:
Note
You cannot use smart identifiers with the 
edit-body-text()
 filter at this time.
HTML Convert Action
While RFC 2822 defines a text format for email messages, there are extensions (such as MIME) to 
provide the transport of other content within an RFC 2822 message. AsyncOS can now use the 
html-convert()
 message filter to convert HTML to plain text using the following syntax:
The Cisco message filters make a determination on whether a given MIME part is considered a message 
“body” or a message “attachment”. The 
html-convert()
 filter only works on the message body parts. 
For more information about message bodies and attachments, see 
.
Depending on the format, the
 html-convert()
 filter uses different methods to strip the HTML from 
within the documents.
URL_Replaced: if true { 
 
 edit-body-text("(?i)(?:https?|ftp)://[^\\s\">]+", "URL REMOVED");
       }
ssn: if true { 
  edit-body-text("(?!000)(?:[0-6]\\d{2}|7(?:[0-6]\\d|7[012]))([ 
-]?)(?!00)\\d\\d\\1(?!0000)\\d{4}",
"XXX-XX-XXXX"); 
}
Convert_HTML_Filter:
if (true)
{
html-convert();
}