Cisco Cisco Email Security Appliance C160 Mode D'Emploi

Page de 568
Chapter 6      Using Message Filters to Enforce Email Policies
6-90
Cisco IronPort AsyncOS 7.5 for Email Advanced Configuration Guide
OL-25137-01
Note
The 
strip-headers
 and 
insert-header
 actions can be used in combination to 
rewrite any message headers in the original message. In some case, it is valid to 
have multiple instances of the same header (for example, 
Received:
) where in 
other cases, multiple instances of the same header could confuse a MUA (for 
example, multiple Subject: headers.)
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. 
Remove_SCAN: if true
   {
      edit-header-text (‘Subject’, ‘^SCAN\\s*’,’’);
}