The following example
Default Filter Rules.xml
file shows
the filter rule required. This file must be located in the folder,
Custom Filter Rules
, in the
Enterprise Vault installation folder (typically C:\Program Files\Enterprise Vault\Custom Filter
Rules
).
<?xml version="1.0"?> <RULE_SET xmlns="x-schema:ruleset schema.xdr"> <RULE NAME="MBX DIFF_RET_CAT" ACTION="ARCHIVE_ITEM" CONTENTCATEGORY="MsgClassTest" RETENTION="180Day"> <NAMEDPROP TAG="MSGCLASS" INCLUDES="ANY"> <PROP VALUE="IPM.Appointment" /> </NAMEDPROP> </RULE> </RULE_SET>
Settings in the file are used as follows:
NAME="MBX DIFF_RET_CAT". This setting assigns a name to the rule. If Dtrace logging is enabled for the Exchange Mailbox task, the rule name is displayed when items are evaluated using this rule.
ACTION="ARCHIVE_ITEM" CONTENTCATEGORY="MsgClassTest" RETENTION="180Day". Items that match the rule are processed as follows:
The <NAMEDPROP> element defines the message property and value to use when evaluating items using this rule.
TAG="MSGCLASS" is the
Enterprise Vault label for the property. This label is assigned to
the associated MAPI property in Custom
Properties.xml
.
INCLUDES="ANY". Any item with the property value shown matches the rule.
<PROP VALUE="IPM.Appointment" />. When an item has a MSGCLASS property with the valueIPM.Appointment, then that item matches the rule.