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.