Cisco Cisco Email Security Appliance C190 ユーザーガイド

ページ / 1185
 
9-69
Cisco AsyncOS 8.5.6 for Email User Guide
 
Chapter 9      Using Message Filters to Enforce Email Policies
  Message Filter Actions
When working with headers, remember that the current value of the header includes changes made 
during processing (such as with filter actions that add, remove, or modify message headings). See 
 for more information.
Edit Header Text Action
The 
edit-header-text 
action allows you to rewrite specified header text using the regular expression 
substitution function. The filter matches the regular expression within the header and replaces it with a 
regular expression you specify. 
For example, an email contains the following subject header:
Subject: SCAN Marketing Messages
The following filter removes the “SCAN” text, and leaves the text, “Marketing Messages”, in the header:
After the filter processes the message, it returns the following header:
Subject: Marketing Messages
Edit Body Text Action
The 
edit-body-text()
 message filter is similar to the 
Edit-Header-Text()
 filter, but it operates across 
the body of the message instead of one of the headers. 
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’:
Remove_SCAN: if true
   {
      edit-header-text (‘Subject’, ‘^SCAN\\s*’,’’);
}
Example: if true {
edit-body-text("parameter 1",
"parameter 2");
       }
URL_Replaced: if true {