Cisco Cisco Email Security Appliance C680 用户指南

下载
页码 568
6-91
Cisco IronPort AsyncOS 7.5 for Email Advanced Configuration Guide
OL-25137-01
Chapter 6      Using Message Filters to Enforce Email Policies
The 
edit-body-text()
 message filter uses the following syntax where the first 
parameter is the regular expression to search for and the second parameter is the 
replacement text:
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’:
Example: if true {
edit-body-text("parameter 1",
"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"); 
}