EnableAlwaysDeleteItemsInConversations method

Future<ServiceResponseCollection<ServiceResponse>> EnableAlwaysDeleteItemsInConversations(
  1. Iterable<ConversationId> conversationId,
  2. bool processSynchronously
)
Sets up a conversation so that any item received within that conversation is always moved to Deleted Items folder. Calling this method results in a call to EWS. The id of the conversation. Indicates whether the method should return only once enabling this rule and deleting existing items in the conversation is completely done. If processSynchronously is false, the method returns immediately.

Implementation

Future<ServiceResponseCollection<ServiceResponse>>
EnableAlwaysDeleteItemsInConversations(
  Iterable<ConversationId> conversationId,
  bool processSynchronously,
) {
  return ApplyConversationAction(
    ConversationActionType.AlwaysDelete,
    conversationId,
    processSynchronously,
    null,
    true,
    null,
    ServiceErrorHandling.ReturnErrors,
  );
}