Blocks

PureMessage policy actions are grouped together in blocks. Blocks act like containers; they hold actions together. A block begins with an opening brace "{" and ends with a closing brace "}". Every action in a block must end with a semicolon. The block itself ends with a closing brace.

Generic Example:
{
    action;
}
Policy Script Example:
{
    keep;
}

In this example, the policy block contains the single action keep. The keep command delivers the message to all envelope recipients. Blocks can, however, contain one or many actions. When multiple actions are listed inside a block, each action is executed in a sequence from top to bottom.

Policy Script Example:
{
    pmx_quarantine "Blacklisted";
    stop;
}

In this example, the policy block contains a sequence of two mail filtering actions. The message is first quarantined with the reason "Blacklisted", and then the script stops. Each action is delimited with a semicolon to indicate to the interpreter when each action ends.