public AggregateOperationResult AlwaysClutterOrUnclutter(bool?clutterOrUnclutter, bool processItems) { AggregateOperationResult result = null; using (ConversationActionItem associatedActionItem = this.GetAssociatedActionItem()) { associatedActionItem.AlwaysClutterOrUnclutterValue = clutterOrUnclutter; if (clutterOrUnclutter != null && processItems) { result = associatedActionItem.ProcessItems(ConversationAction.AlwaysClutterOrUnclutter, this); } associatedActionItem.Save(SaveMode.ResolveConflicts); } return(result); }
public AggregateOperationResult AlwaysMove(StoreObjectId folderId, bool processItems) { AggregateOperationResult result = null; using (ConversationActionItem associatedActionItem = this.GetAssociatedActionItem()) { associatedActionItem.AlwaysMoveValue = folderId; if (folderId != null && processItems) { result = associatedActionItem.ProcessItems(ConversationAction.AlwaysMove, this); } associatedActionItem.Save(SaveMode.ResolveConflicts); } return(result); }
public AggregateOperationResult AlwaysCategorize(string[] categories, bool processItems) { AggregateOperationResult result = null; using (ConversationActionItem associatedActionItem = this.GetAssociatedActionItem()) { associatedActionItem.AlwaysCategorizeValue = categories; if (categories != null && processItems) { result = associatedActionItem.ProcessItems(ConversationAction.AlwaysCategorize, this); } associatedActionItem.Save(SaveMode.ResolveConflicts); } return(result); }
public AggregateOperationResult AlwaysDelete(bool enable, bool processItems) { AggregateOperationResult result = null; using (ConversationActionItem associatedActionItem = this.GetAssociatedActionItem()) { associatedActionItem.AlwaysDeleteValue = enable; associatedActionItem.ConversationActionMaxDeliveryTime = ExDateTime.MinValue; if (enable && processItems) { result = associatedActionItem.ProcessItems(ConversationAction.AlwaysDelete, this); } associatedActionItem.Save(SaveMode.ResolveConflicts); } return(result); }