Ejemplo n.º 1
0
        /// <summary>
        /// Creates and adds new 'Move To IMAP Folder' action to UserMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="folder">IMAP folder where to move message. If specified folder doesn't exist, message is store users Inbox.</param>
        public UserMessageRuleAction_MoveToImapFolder Add_MoveToImapFolder(string description, string folder)
        {
            UserMessageRuleAction_MoveToImapFolder action = new UserMessageRuleAction_MoveToImapFolder(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                folder
                );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return(action);
        }
        /// <summary>
        /// Creates and adds new 'Move To IMAP Folder' action to UserMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="folder">IMAP folder where to move message. If specified folder doesn't exist, message is store users Inbox.</param>
        public UserMessageRuleAction_MoveToImapFolder Add_MoveToImapFolder(string description,string folder)
        {
            UserMessageRuleAction_MoveToImapFolder action = new UserMessageRuleAction_MoveToImapFolder(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                folder
            );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return action;
        }