The content category,
MsgClassTest, and the property, MSGCLASS, are defined in the
following example Custom
Properties.xml
file. This file also defines how the content
category and property are presented in the specified application.
Custom Properties.xml
must be located
in the folder, Custom Filter Rules
,
in the Enterprise Vault installation folder.
<?xml version="1.0"?> <CUSTOMPROPERTYMETADATA xmlns:xsi="http://www.w3.org/2001/ XMLSchema-instance" xsi:noNamespaceSchemaLocation= "customproperties.xsd"> <CONTENTCATEGORIES DEFAULT="MsgClassTest"> <CONTENTCATEGORY NAME="MsgClassTest"> <INDEXEDPROPERTIES> <PROPERTY TAG="MSGCLASS"/> </INDEXEDPROPERTIES> </CONTENTCATEGORY> </CONTENTCATEGORIES> <CUSTOMPROPERTIES> <NAMESPACE TYPE="MAPI"> <PROPERTY TAG="MSGCLASS" NAME="0x001A" /> </NAMESPACE> </CUSTOMPROPERTIES> <PRESENTATION> <APPLICATION NAME="search.asp" LOCALE="1033"> <FIELDGROUPS> <FIELDGROUP LABEL="Content Category"> <FIELD TAG="MSGCLASS" LABEL="Message Class" CATEGORY="MsgClassTest"/> </FIELDGROUP> </FIELDGROUPS> <AVAILABLECATEGORIES> <AVAILABLECATEGORY CONTENTCATEGORY="MsgClassTest" LABEL="Message Class Test"/> </AVAILABLECATEGORIES> </APPLICATION> </PRESENTATION> </CUSTOMPROPERTYMETADATA>
Settings in the file are used as follows:
The <CONTENTCATEGORY> element defines the content category, MsgClassTest.
In the <INDEXEDPROPERTIES> element, the <PROPERTY> element specifies that the MSGCLASS property is to be indexed when the content category is applied to an item.
In the <PROPERTY> part of the <CUSTOMPROPERTIES> element, the standard MAPI property (NAME="0x001A") is mapped to the Enterprise Vault property tag (TAG="MSGCLASS").
0x001A is the identifier part (bits 16 to 31) of the hexadecimal MAPI tag for the message class property.
The <PRESENTATION> element defines how the message class property is displayed in the application specified in the <APPLICATION> element. In this example, NAME="search.asp" identifies the Enterprise Vault browser search. The language for this application (LOCALE) is US English.
In the context of the browser search application, <FIELDGROUPS> identifies the new search criteria to be added to the search page. As the new property is to be listed under its associated content category, <FIELDGROUP LABEL="Content Category"> identifies the top level search criteria label. The properties to be listed when a particular content category is selected are identified by the <FIELD> settings. The <AVAILABLECATEGORIES> element identifies the content categories that can be selected. In this example, there is only one content category, which has only one property.
See Figure: Content category added to browser search criteria.