Share via


2.2.156 ItemHasKnownEntity

Target namespace: http://schemas.microsoft.com/office/mailappversionoverrides/1.1

Defines a rule that evaluates to true if the item contains text of the specified entity type in its subject or body.

Attributes:

EntityType: A ShortString attribute that specifies the type of entity that MUST be found for the rule to evaluate to true. Currently supported values are: "MeetingSuggestion", "TaskSuggestion", "Address", "Url", "PhoneNumber", "EmailAddress", and "Contact".

RegExFilter: A NonEmptyString attribute that specifies a regular expression to run against this entity for activation.

FilterName: A NonEmptyString attribute that specifies specifies the name of the regular expression filter, so that it is subsequently possible to refer to it by code.

IgnoreCase: A boolean attribute that specifies to ignore case when running the regular expression specified by the "RegExFilter" attribute.

Highlight: A ShortString attribute that specifies highlighting for the matches of this rule. This attribute is only acknowledged if the rule type is ItemHasRegularExpressionMatch or ItemHasKnownEntity, and the rule is under a DetectedEntity extension point. In other words, this attribute is ignored for other rule types, or all rules (regardless of type) under a CustomPane extension point or legacy rules (rules that are immediate children of the OfficeApp element). Currently supported values for this attribute are: "None", "All".

The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this complex type.

 <xs:complexType name="ItemHasKnownEntity">
   <xs:complexContent>
     <xs:extension base="Rule">
       <xs:attribute name="EntityType" type="bt:ShortString" use="required"/>
       <xs:attribute name="RegExFilter" type="bt:NonEmptyString" use="optional"/>
       <xs:attribute name="FilterName" type="bt:NonEmptyString" use="optional"/>
       <xs:attribute name="IgnoreCase" type="xs:boolean" use="optional"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>

See section 5.5 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).