3.1.5.1.2 Processing a DEM

When processing a DEM, the client MUST first determine whether it has to process the DEM by inspecting the value of the PidTagRuleProvider property (section 2.2.7.5) on the DEM. If the value matches one of the rule provider strings the client supports, the client SHOULD process the DEM at its earliest convenience; otherwise, the client MUST ignore the DEM.

In addition to the PidTagRuleProvider property, when processing a DEM, the client can use any combination of the properties the server sets on the DEM as specified in section 2.2.7. In particular, the client SHOULD use the value of the PidTagRuleError property (section 2.2.7.2) to identify what error occurred, and it SHOULD use the values of the PidTagRuleFolderEntryId (section 2.2.7.7) and PidTagRuleId (section 2.2.7.8) properties if it needs to get more information from the rules table about the rule (2) that failed and return that information to the higher levels.

As a result of processing the DEM, the client SHOULD display an error to the user or take programmatic action (2) as a result of a rule (2) in error.

After processing a DEM, the client MUST delete the DEM. For more details about how to delete a message, see [MS-OXCFOLD] section 2.2.1.11.