Match-Types

A match-type performs a matching operation on a particular feature of a message. In the policy script, the match-type modifies a test to check for specific characteristics.

For example, the :is match-type is used here to modify the envelope test to determine if a message is "From" "spammer@foo.com".

if envelope :is "From" "spammer@foo.com" {
    pmx_quarantine "SPAM";
}

PureMessage uses several match-types to filter messages. These include: :memberof for matching content in lists , :contains and :is for matching strings, :over or :under for numeric comparison, and :re for searching messages with regular expressions. Depending on the specific match-type used, additional parameters will have to be specified. See "MATCH-TYPE" in the pmx-policy manpage guide for more information.

Generic Example:
if test :match_type {
    action;
    next_action;
}