/// <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>
 internal UserMessageRuleAction_DeleteMessage(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description) : base(UserMessageRuleAction_enum.DeleteMessage,rule,owner,id,description)
 {
     /*  Action data structure:
             <ActionData>
             </ActionData>
     */
 }
Esempio n. 2
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>
 internal UserMessageRuleAction_DeleteMessage(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description) : base(UserMessageRuleAction_enum.DeleteMessage, rule, owner, id, description)
 {
     /*  Action data structure:
      *      <ActionData>
      *      </ActionData>
      */
 }
 /// <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="host">FTP server where to store message.</param>
 /// <param name="port">FTP server port.</param>
 /// <param name="userName">FTP server user name.</param>
 /// <param name="password">FTP server user password.</param>
 /// <param name="folder">FTP folder where to store message.</param>
 internal UserMessageRuleAction_StoreToFtp(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string host, int port, string userName, string password, string folder) : base(UserMessageRuleAction_enum.StoreToFTPFolder, rule, owner, id, description)
 {
     m_Server   = host;
     m_Port     = port;
     m_UserName = userName;
     m_Password = password;
     m_Folder   = folder;
 }
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="actionType">Specifies action type.</param>
 /// <param name="rule">Onwer rule that owns 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>
 internal UserMessageRuleActionBase(UserMessageRuleAction_enum actionType, UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description)
 {
     m_ActionType  = actionType;
     m_pRule       = rule;
     m_pOwner      = owner;
     m_ID          = id;
     m_Description = description;
 }
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="actionType">Specifies action type.</param>
 /// <param name="rule">Onwer rule that owns 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>
 internal UserMessageRuleActionBase(UserMessageRuleAction_enum actionType,UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description)
 {
     m_ActionType  = actionType;
     m_pRule       = rule;
     m_pOwner      = owner;
     m_ID          = id;
     m_Description = description;
 }
        /// <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="host">FTP server where to store message.</param>
        /// <param name="port">FTP server port.</param>
        /// <param name="userName">FTP server user name.</param>
        /// <param name="password">FTP server user password.</param>
        /// <param name="folder">FTP folder where to store message.</param>
        internal UserMessageRuleAction_StoreToFtp(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string host,int port,string userName,string password,string folder) : base(UserMessageRuleAction_enum.StoreToFTPFolder,rule,owner,id,description)
        {
            m_Server   = host;
            m_Port     = port;
            m_UserName = userName;
            m_Password = password;
            m_Folder   = folder;

        }
 /// <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");            
 }
 /// <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");            
 }
 /// <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");            
 }
Esempio n. 10
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");
        }
        /// <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");
        }
Esempio n. 12
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");
        }
 /// <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_ExecuteProgram(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(UserMessageRuleAction_enum.ExecuteProgram,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");            
 }
 /// <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_PostToHttp(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,byte[] actionData) : base(UserMessageRuleAction_enum.PostToHTTP,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");            
 }
 /// <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"));
 }
Esempio n. 16
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"));
        }
        /// <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"));  
        }
        /// <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_PostToHttp(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleAction_enum.PostToHTTP, 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");
        }
        /// <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_ExecuteProgram(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleAction_enum.ExecuteProgram, 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");
        }
Esempio n. 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_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"));
        }
 /// <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");            
 }
 /// <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");            
 }
Esempio n. 23
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");
        }
        /// <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");
        }
 /// <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="url">HTTP URL where to post message.</param>
 internal UserMessageRuleAction_PostToHttp(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string url) : base(UserMessageRuleAction_enum.PostToHTTP,rule,owner,id,description)
 {
     m_Url = url;
 }
Esempio n. 26
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="email">Email address where to forward message.</param>
 internal UserMessageRuleAction_ForwardToEmail(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string email) : base(UserMessageRuleAction_enum.ForwardToEmail, rule, owner, id, description)
 {
     m_EmailAddress = email;
 }
 /// <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="headerField">Header field name what to remove.</param>
 internal UserMessageRuleAction_RemoveHeaderField(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string headerField) : base(UserMessageRuleAction_enum.RemoveHeaderField,rule,owner,id,description)
 {
     m_HeaderFieldName = headerField;
 }
Esempio n. 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="host">NTTP server where to post message.</param>
 /// <param name="port">NNTP server port.</param>
 /// <param name="newsgroup">NTTP newsgroup where to post message.</param>
 internal UserMessageRuleAction_PostToNntpNewsgroup(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string host, int port, string newsgroup) : base(UserMessageRuleAction_enum.PostToNNTPNewsGroup, rule, owner, id, description)
 {
     m_Server    = host;
     m_Port      = port;
     m_Newsgroup = newsgroup;
 }
 /// <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="host">Host name or IP where to forward message.</param>
 /// <param name="port">Destination host port.</param>
 internal UserMessageRuleAction_ForwardToHost(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string host,int port) : base(UserMessageRuleAction_enum.ForwardToHost,rule,owner,id,description)
 {
     m_Host = host;
     m_Port = port;
 }
Esempio n. 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="folder">Disk folder where to store message.</param>
 internal UserMessageRuleAction_StoreToDiskFolder(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string folder) : base(UserMessageRuleAction_enum.StoreToDiskFolder, rule, owner, id, description)
 {
     m_Folder = folder;
 }
 /// <summary>
 /// Default constructor. 
 /// </summary>
 /// <param name="rule">Onwer rule that owns 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="headerFieldName">Header field name.</param>
 /// <param name="headerFieldValue">Header field name.</param>
 internal UserMessageRuleAction_AddHeaderField(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string headerFieldName,string headerFieldValue) : base(UserMessageRuleAction_enum.AddHeaderField,rule,owner,id,description)
 {
     m_HeaderFieldName  = headerFieldName;
     m_HeaderFieldValue = headerFieldValue;
 }
 /// <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="folder">IMAP folder where to move message. If specified folder doesn't exist, message is store users Inbox.</param>
 internal UserMessageRuleAction_MoveToImapFolder(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string folder) : base(UserMessageRuleAction_enum.MoveToIMAPFolder,rule,owner,id,description)
 {
     m_Folder = folder;
 }
 /// <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="headerField">Header field name what to remove.</param>
 internal UserMessageRuleAction_RemoveHeaderField(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string headerField) : base(UserMessageRuleAction_enum.RemoveHeaderField, rule, owner, id, description)
 {
     m_HeaderFieldName = headerField;
 }
Esempio n. 34
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="from">MAIL FROM: what is reported to destination SMTP server when auto response is sent.</param>
 /// <param name="message">Full auto response message. This must be rfc 2822 defined message.</param>
 internal UserMessageRuleAction_AutoResponse(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string from, byte[] message) : base(UserMessageRuleAction_enum.AutoResponse, rule, owner, id, description)
 {
     m_From    = from;
     m_Message = message;
 }
 /// <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="program">Program to execute.</param>
 /// <param name="programArgs">Executable program arguments.</param>
 internal UserMessageRuleAction_ExecuteProgram(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string program, string programArgs) : base(UserMessageRuleAction_enum.ExecuteProgram, rule, owner, id, description)
 {
     m_Program     = program;
     m_ProgramArgs = programArgs;
 }
 /// <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="email">Email address where to forward message.</param>
 internal UserMessageRuleAction_ForwardToEmail(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string email) : base(UserMessageRuleAction_enum.ForwardToEmail,rule,owner,id,description)
 {
     m_EmailAddress = email;
 }
 /// <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="from">MAIL FROM: what is reported to destination SMTP server when auto response is sent.</param>
 /// <param name="message">Full auto response message. This must be rfc 2822 defined message.</param>
 internal UserMessageRuleAction_AutoResponse(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string from,byte[] message) : base(UserMessageRuleAction_enum.AutoResponse,rule,owner,id,description)
 {
     m_From    = from;
     m_Message = message;
 }
 /// <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="url">HTTP URL where to post message.</param>
 internal UserMessageRuleAction_PostToHttp(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string url) : base(UserMessageRuleAction_enum.PostToHTTP, rule, owner, id, description)
 {
     m_Url = url;
 }
 /// <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="program">Program to execute.</param>
 /// <param name="programArgs">Executable program arguments.</param>
 internal UserMessageRuleAction_ExecuteProgram(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string program,string programArgs) : base(UserMessageRuleAction_enum.ExecuteProgram,rule,owner,id,description)
 {
     m_Program     = program;
     m_ProgramArgs = programArgs;
 }
 /// <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="folder">IMAP folder where to move message. If specified folder doesn't exist, message is store users Inbox.</param>
 internal UserMessageRuleAction_MoveToImapFolder(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string folder) : base(UserMessageRuleAction_enum.MoveToIMAPFolder, rule, owner, id, description)
 {
     m_Folder = folder;
 }
Esempio n. 41
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="host">Host name or IP where to forward message.</param>
 /// <param name="port">Destination host port.</param>
 internal UserMessageRuleAction_ForwardToHost(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string host, int port) : base(UserMessageRuleAction_enum.ForwardToHost, rule, owner, id, description)
 {
     m_Host = host;
     m_Port = port;
 }
 /// <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="host">NTTP server where to post message.</param>
 /// <param name="port">NNTP server port.</param>
 /// <param name="newsgroup">NTTP newsgroup where to post message.</param>
 internal UserMessageRuleAction_PostToNntpNewsgroup(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string host,int port,string newsgroup) : base(UserMessageRuleAction_enum.PostToNNTPNewsGroup,rule,owner,id,description)
 {
     m_Server    = host;
     m_Port      = port;
     m_Newsgroup = newsgroup;
 }
 /// <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="folder">Disk folder where to store message.</param>
 internal UserMessageRuleAction_StoreToDiskFolder(UserMessageRule rule,UserMessageRuleActionCollection owner,string id,string description,string folder) : base(UserMessageRuleAction_enum.StoreToDiskFolder,rule,owner,id,description)
 {
     m_Folder = folder;
 }
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="rule">Onwer rule that owns 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="headerFieldName">Header field name.</param>
 /// <param name="headerFieldValue">Header field name.</param>
 internal UserMessageRuleAction_AddHeaderField(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string headerFieldName, string headerFieldValue) : base(UserMessageRuleAction_enum.AddHeaderField, rule, owner, id, description)
 {
     m_HeaderFieldName  = headerFieldName;
     m_HeaderFieldValue = headerFieldValue;
 }