Cisco Cisco Email Security Appliance C170 Guia Do Utilizador

Página de 1219
 
9-71
Cisco AsyncOS 9.1 for Email User Guide
 
Chapter 9      Using Message Filters to Enforce Email Policies
  Message Filter Actions
The 
edit-body-text()
 message filter only works on the message body parts. For more information 
about whether a given MIME part is considered a message “body” or a message “attachment”, see 
.
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:
"parameter 2");
       }
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();
}