Cisco Cisco Email Security Appliance C160 Mode D'Emploi

Page de 548
Chapter 5      Using Message Filters to Enforce Email Policies
5-314
Cisco IronPort AsyncOS 7.1 for Email Advanced Configuration Guide
OL-22164-02
searching messages with non-US date formats.) the following filter bounces all 
messages from 
campaign1@yourdomain.com
 that are injected after 1:00pm on July 
28th, 2003:
TimeOutFilter:
   if ((date > '07/28/2003 13:00:00') and (mail-from == 
      'campaign1@yourdomain\\.com'))
   {
        bounce();
   }
Note
Do not confuse the 
date
 rule with the 
$Date
 message filter action variable.
Header Rule
The 
header()
 rule checks the message headers for a specific header, which must 
be specified quoted in parentheses (“header name”). This rule may be compared 
to a regular expression, much like the 
subject
 rule, or may be used without any 
comparison, in which case it will be “true” if the header is found in the message, 
and “false” if it is not found. For example, the following example checks to see if 
the header 
X-Sample
 is found, and if its value contains the string “
sample text
”. 
If a match is made, the message is bounced.
FooHeaderFilter:
   if (header('X-Sample') == 'sample text')
   {