Edit the PureMessage Policy
Marks for custom reports are not logged unless you an add an action for each value that you
want reported. You can add a policy mark action to an existing rule, or, if necessary, create
a new rule. Although this example shows the lines that you must insert in the
policy.siv file, you can also modify the policy as necessary using the
Policy Constructor. For more information, see "Editing the Policy" in the Manager
Reference. This custom report requires the following rules:
# attr NAME=Recipient is a team manager
if envelope :memberof "to" "team-managers" {
pmx_custom_mark :overwrite "list_member" "TeamMan";
}
# attr NAME=Recipient is a middle manager
if envelope :memberof "to" "middle-managers" {
pmx_custom_mark :overwrite "list_member" "MiddleMan";
}
# attr NAME=Recipient is an executive
if envelope :memberof "to" "executives" {
pmx_custom_mark :overwrite "list_member" "Exec";
}
Notice that the last line of each rule contains a pmx_custom_mark action.
This example uses the :overwrite option, which specifies that only a single
mark is written to the message log each time for any given key. The key specified in all cases
is list_member. In this case, because the action for executives is processed
last, any other marks are overwritten if the message is sent to a person who belongs to more
than one list.
Note: It is important that you apply :overwrite to all
pmx_custom_mark actions for a specific key, or not at all. Failure to do so
will affect the accuracy of the report. For more information, see the
pmx_custom_mark man page.
The key that you enter in the next step must match this key (list_member)
exactly. Each action has a unique value (for example, "MiddleMan"), which must also exactly
match a corresponding entry you will enter in step 2.