Cisco Cisco Email Security Appliance X1070 사용자 가이드

다운로드
페이지 570
6-387
Cisco IronPort AsyncOS 7.3 for Email Advanced Configuration Guide
OL-23081-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:
Example: if true {
edit-body-text("parameter 1",
"parameter 2");
       }
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’:
URL_Replaced: if true { 
 
 edit-body-text("(?i)(?:https?|ftp)://[^\\s\">]+", "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’:
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"); 
}