コード例 #1
0
        /// <summary>
        /// Creates and adds new 'Move To IMAP Folder' action to GlobalMessageRuleActionCollection 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 GlobalMessageRuleAction_MoveToImapFolder Add_MoveToImapFolder(string description, string folder)
        {
            GlobalMessageRuleAction_MoveToImapFolder action = new GlobalMessageRuleAction_MoveToImapFolder(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                folder
                );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return(action);
        }
コード例 #2
0
        /// <summary>
        /// Creates and adds new 'Move To IMAP Folder' action to GlobalMessageRuleActionCollection 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 GlobalMessageRuleAction_MoveToImapFolder Add_MoveToImapFolder(string description,string folder)
        {
            GlobalMessageRuleAction_MoveToImapFolder action = new GlobalMessageRuleAction_MoveToImapFolder(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                folder
            );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return action;
        }