Cisco Cisco Email Security Appliance C170 Guia Do Utilizador

Página de 570
6-385
Cisco IronPort AsyncOS 7.3 for Email Advanced Configuration Guide
OL-23081-01
Chapter 6      Using Message Filters to Enforce Email Policies
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.
Insert Header Action 
The 
insert-header
 action inserts a new header into a message. AsyncOS does 
not verify the compliance to standards of the header you insert; you are 
responsible for ensuring that the resulting message complies with Internet 
standards for email.
The following example inserts a header named 
X-Company
 with the value set to 
My 
Company Name
 if the header is not already found in the message:
addXCompanyFilter:
   if (not header('X-Company'))
   {
        insert-header('X-Company', 'My Company Name');
   }
The insert-header() action allows the use of non-ASCII characters in the text of 
the header, while restricting the header name to be ASCII (to comply with 
standards). The transport encoding will be quoted-printable to maximize the 
readability.
        strip-header('X-DeleteMe');
   }