示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }