ExchangeService.UpdateInboxRules method (IEnumerable<RuleOperation>, Boolean)
Updates a specified user's Inbox rules by applying the specified operations.
Assembly: Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)
public void UpdateInboxRules( IEnumerable<RuleOperation> operations, bool removeOutlookRuleBlob )
Calling this method results in a call to Exchange Web Service (EWS).
You can use the OutlookRuleBlobExists property to determine whether to prompt the user before calling this method.
When you call the UpdateInboxRules method, EWS deletes client-side send rules. Client-side send rules are stored on the client in the rule Folder Associated Information (FAI) Message and nowhere else. EWS deletes this rule FAI message by default, based on the expectation that Outlook will recreate it. However, Outlook can't recreate rules that don't also exist as an extended rule, and client-side send rules don't exist as extended rules. As a result, these rules are lost. We suggest you consider this when designing your solution.