コード例 #1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="actionData">Action data.</param>
 internal RouteAction_RouteToMailbox(byte[] actionData) : base(RouteAction_enum.RouteToMailbox)
 {
     /*  Action data structure:
             <ActionData>
                 <Mailbox></Mailbox>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_Mailbox = table.GetValue("Mailbox");
 }
コード例 #2
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that ows this action.</param>
 /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
 /// <param name="id">Action ID.</param>
 /// <param name="description">Action description.</param>
 /// <param name="actionData">Action data.</param>
 internal GlobalMessageRuleAction_SendError(GlobalMessageRule rule,GlobalMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
                 <ErrorText></ErrorText>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_ErrorText = table.GetValue("ErrorText");            
 }
コード例 #3
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that ows this action.</param>
 /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
 /// <param name="id">Action ID.</param>
 /// <param name="description">Action description.</param>
 /// <param name="actionData">Action data.</param>
 internal GlobalMessageRuleAction_MoveToImapFolder(GlobalMessageRule rule,GlobalMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
                 <Folder></Folder>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_Folder = table.GetValue("Folder");            
 }
コード例 #4
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that ows this action.</param>
 /// <param name="owner">Owner UserMessageRuleActionCollection that owns this action.</param>
 /// <param name="id">Action ID.</param>
 /// <param name="description">Action description.</param>
 /// <param name="actionData">Action data.</param>
 internal UserMessageRuleAction_RemoveHeaderField(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(UserMessageRuleAction_enum.RemoveHeaderField,rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
                 <HeaderFieldName></HeaderFieldName>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_HeaderFieldName = table.GetValue("HeaderFieldName");            
 }
コード例 #5
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="actionData">Action data.</param>
 internal RouteAction_RouteToEmail(byte[] actionData) : base(RouteAction_enum.RouteToEmail)
 {
     /*  Action data structure:
             <ActionData>
                 <EmailAddress></EmailAddress>
             </ActionData>
     */
              
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_Email = table.GetValue("EmailAddress");
 }
コード例 #6
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that ows this action.</param>
 /// <param name="owner">Owner UserMessageRuleActionCollection that owns this action.</param>
 /// <param name="id">Action ID.</param>
 /// <param name="description">Action description.</param>
 /// <param name="actionData">Action data.</param>
 internal UserMessageRuleAction_StoreToDiskFolder(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(UserMessageRuleAction_enum.StoreToDiskFolder,rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
                 <Folder></Folder>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_Folder = table.GetValue("Folder");            
 }
コード例 #7
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that ows this action.</param>
 /// <param name="owner">Owner UserMessageRuleActionCollection that owns this action.</param>
 /// <param name="id">Action ID.</param>
 /// <param name="description">Action description.</param>
 /// <param name="actionData">Action data.</param>
 internal UserMessageRuleAction_ForwardToEmail(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(UserMessageRuleAction_enum.ForwardToEmail,rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
                 <Email></Email>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_EmailAddress = table.GetValue("Email");            
 }
コード例 #8
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal GlobalMessageRuleAction_RemoveHeaderField(GlobalMessageRule rule, GlobalMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <HeaderFieldName></HeaderFieldName>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_HeaderFieldName = table.GetValue("HeaderFieldName");
        }
コード例 #9
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal GlobalMessageRuleAction_ForwardToEmail(GlobalMessageRule rule, GlobalMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <Email></Email>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_EmailAddress = table.GetValue("Email");
        }
コード例 #10
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal GlobalMessageRuleAction_StoreToDiskFolder(GlobalMessageRule rule, GlobalMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <Folder></Folder>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_Folder = table.GetValue("Folder");
        }
コード例 #11
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="actionData">Action data.</param>
        internal RouteAction_RouteToMailbox(byte[] actionData) : base(RouteAction_enum.RouteToMailbox)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <Mailbox></Mailbox>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_Mailbox = table.GetValue("Mailbox");
        }
コード例 #12
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal GlobalMessageRuleAction_SendError(GlobalMessageRule rule, GlobalMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <ErrorText></ErrorText>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_ErrorText = table.GetValue("ErrorText");
        }
コード例 #13
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="actionData">Action data.</param>
        internal RouteAction_RouteToEmail(byte[] actionData) : base(RouteAction_enum.RouteToEmail)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <EmailAddress></EmailAddress>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_Email = table.GetValue("EmailAddress");
        }
コード例 #14
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner UserMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal UserMessageRuleAction_MoveToImapFolder(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleAction_enum.MoveToIMAPFolder, rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <Folder></Folder>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_Folder = table.GetValue("Folder");
        }
コード例 #15
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that ows this action.</param>
 /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
 /// <param name="id">Action ID.</param>
 /// <param name="description">Action description.</param>
 /// <param name="actionData">Action data.</param>
 internal GlobalMessageRuleAction_ExecuteProgram(GlobalMessageRule rule,GlobalMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
                 <Program></Program>
                 <Arguments></Arguments>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_Program     = table.GetValue("Program");
     m_ProgramArgs = table.GetValue("Arguments");            
 }
コード例 #16
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="actionData">Action data.</param>
 internal RouteAction_RouteToHost(byte[] actionData) : base(RouteAction_enum.RouteToHost)
 {
     /*  Action data structure:
             <ActionData>
                 <Host></Host>
                 <Port></Port>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_Host = table.GetValue("Host");
     m_Port = Convert.ToInt32(table.GetValue("Port"));
 }
コード例 #17
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that ows this action.</param>
 /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
 /// <param name="id">Action ID.</param>
 /// <param name="description">Action description.</param>
 /// <param name="actionData">Action data.</param>
 internal GlobalMessageRuleAction_ForwardToHost(GlobalMessageRule rule,GlobalMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
                 <Host></Host>
                 <Port></Port>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_Host = table.GetValue("Host");
     m_Port = Convert.ToInt32(table.GetValue("Port"));
 }
コード例 #18
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that ows this action.</param>
 /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
 /// <param name="id">Action ID.</param>
 /// <param name="description">Action description.</param>
 /// <param name="actionData">Action data.</param>
 internal GlobalMessageRuleAction_PostToHttp(GlobalMessageRule rule,GlobalMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
                 <URL></URL>
                 <FileName></FileName>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_Url = table.GetValue("URL");
  // table.GetValue("FileName");            
 }
コード例 #19
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="actionData">Action data.</param>
        internal RouteAction_RouteToHost(byte[] actionData) : base(RouteAction_enum.RouteToHost)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <Host></Host>
             *          <Port></Port>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_Host = table.GetValue("Host");
            m_Port = Convert.ToInt32(table.GetValue("Port"));
        }
コード例 #20
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner UserMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal UserMessageRuleAction_ForwardToHost(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleAction_enum.ForwardToHost, rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <Host></Host>
             *          <Port></Port>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_Host = table.GetValue("Host");
            m_Port = Convert.ToInt32(table.GetValue("Port"));
        }
コード例 #21
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner UserMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal UserMessageRuleAction_AutoResponse(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(UserMessageRuleAction_enum.AutoResponse,rule,owner,id,description)
        {
            /*  Action data structure:
                    <ActionData>
                        <From></From>
                        <Message></Message>
                    </ActionData>
            */

            
            XmlTable table = new XmlTable("ActionData");
            table.Parse(actionData);
            m_From    = table.GetValue("From");
            m_Message = System.Text.Encoding.Default.GetBytes(table.GetValue("Message"));  
        }
コード例 #22
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal GlobalMessageRuleAction_PostToHttp(GlobalMessageRule rule, GlobalMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <URL></URL>
             *          <FileName></FileName>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_Url = table.GetValue("URL");
            // table.GetValue("FileName");
        }
コード例 #23
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal GlobalMessageRuleAction_AddHeaderField(GlobalMessageRule rule,GlobalMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(rule,owner,id,description)
        {
            /*  Action data structure:
                    <ActionData>
                        <HeaderFieldName></HeaderFieldName>
                        <HeaderFieldValue></HeaderFieldValue>
                    </ActionData>
            */

            
            XmlTable table = new XmlTable("ActionData");
            table.Parse(actionData);
            m_HeaderFieldName  = table.GetValue("HeaderFieldName");
            m_HeaderFieldValue = table.GetValue("HeaderFieldValue");
        }
コード例 #24
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal GlobalMessageRuleAction_ExecuteProgram(GlobalMessageRule rule, GlobalMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <Program></Program>
             *          <Arguments></Arguments>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_Program     = table.GetValue("Program");
            m_ProgramArgs = table.GetValue("Arguments");
        }
コード例 #25
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal UserMessageRuleAction_AddHeaderField(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleAction_enum.AddHeaderField, rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <HeaderFieldName></HeaderFieldName>
             *          <HeaderFieldValue></HeaderFieldValue>
             *      </ActionData>
             */


            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_HeaderFieldName  = table.GetValue("HeaderFieldName");
            m_HeaderFieldValue = table.GetValue("HeaderFieldValue");
        }
コード例 #26
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner GlobalMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal GlobalMessageRuleAction_AutoResponse(GlobalMessageRule rule, GlobalMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <From></From>
             *          <Message></Message>
             *      </ActionData>
             */


            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_From    = table.GetValue("From");
            m_Message = System.Text.Encoding.Default.GetBytes(table.GetValue("Message"));
        }
コード例 #27
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that ows this action.</param>
 /// <param name="owner">Owner USerMessageRuleActionCollection that owns this action.</param>
 /// <param name="id">Action ID.</param>
 /// <param name="description">Action description.</param>
 /// <param name="actionData">Action data.</param>
 internal UserMessageRuleAction_StoreToFtp(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(UserMessageRuleAction_enum.StoreToFTPFolder,rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
                 <Server></Server>
                 <Port></Server>
                 <User></User>
                 <Password></Password>
                 <Folder></Folder>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_Server   = table.GetValue("Server");
     m_Port     = Convert.ToInt32(table.GetValue("Port"));
     m_UserName = table.GetValue("User");
     m_Password = table.GetValue("Password");
     m_Folder   = table.GetValue("Folder");            
 }
コード例 #28
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that ows this action.</param>
 /// <param name="owner">Owner UserMessageRuleActionCollection that owns this action.</param>
 /// <param name="id">Action ID.</param>
 /// <param name="description">Action description.</param>
 /// <param name="actionData">Action data.</param>
 internal UserMessageRuleAction_PostToNntpNewsgroup(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(UserMessageRuleAction_enum.PostToNNTPNewsGroup,rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
                 <Server></Server>
                 <Port></Server>
                 <User></User>
                 <Password></Password>
                 <Newsgroup></Newsgroup>
             </ActionData>
     */
                 
     XmlTable table = new XmlTable("ActionData");
     table.Parse(actionData);
     m_Server    = table.GetValue("Server");
     m_Port      = Convert.ToInt32(table.GetValue("Port"));
     // table.Add("User","");
     // table.Add("Password","");
     m_Newsgroup = table.GetValue("Newsgroup");            
 }
コード例 #29
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner USerMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal UserMessageRuleAction_StoreToFtp(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleAction_enum.StoreToFTPFolder, rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <Server></Server>
             *          <Port></Server>
             *          <User></User>
             *          <Password></Password>
             *          <Folder></Folder>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_Server   = table.GetValue("Server");
            m_Port     = Convert.ToInt32(table.GetValue("Port"));
            m_UserName = table.GetValue("User");
            m_Password = table.GetValue("Password");
            m_Folder   = table.GetValue("Folder");
        }
コード例 #30
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="rule">Onwer rule that ows this action.</param>
        /// <param name="owner">Owner UserMessageRuleActionCollection that owns this action.</param>
        /// <param name="id">Action ID.</param>
        /// <param name="description">Action description.</param>
        /// <param name="actionData">Action data.</param>
        internal UserMessageRuleAction_PostToNntpNewsgroup(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleAction_enum.PostToNNTPNewsGroup, rule, owner, id, description)
        {
            /*  Action data structure:
             *      <ActionData>
             *          <Server></Server>
             *          <Port></Server>
             *          <User></User>
             *          <Password></Password>
             *          <Newsgroup></Newsgroup>
             *      </ActionData>
             */

            XmlTable table = new XmlTable("ActionData");

            table.Parse(actionData);
            m_Server = table.GetValue("Server");
            m_Port   = Convert.ToInt32(table.GetValue("Port"));
            // table.Add("User","");
            // table.Add("Password","");
            m_Newsgroup = table.GetValue("Newsgroup");
        }