Guest

Cisco Email Security Appliance

Are content filters and message filters case insensitive?

Document ID: 118013

Updated: Jul 22, 2014

Contributed by Chris Haag and Enrico Werner, Cisco TAC Engineers.

   Print

Question:

Are content filters and message filters case insensitive?

Both content filters and message filters allow you to apply actions to the messages you specify. Typically, filter rules and actions use regular expressions that are case sensitive.  Case insensitive matching can be applied to both types of filters. In either case,  the regular expression token ( (?i) ) is used.

For content filters, simply add the token via the GUI:




For message filters

if(body-contains("(?i)lottery")) {
   drop();
}

Note: The regular expressions for the mail-from and rcpt-to  filter rules are case insensitive by default.

Updated: Jul 22, 2014
Document ID: 118013