Exemple #1
0
        internal UserMessageRuleAction_PostToHttp(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleActionType.PostToHTTP, rule, owner, id, description)
        {
            XmlTable xmlTable = new XmlTable("ActionData");

            xmlTable.Parse(actionData);
            this.m_Url = xmlTable.GetValue("URL");
        }
Exemple #2
0
        internal UserMessageRuleAction_RemoveHeaderField(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleActionType.RemoveHeaderField, rule, owner, id, description)
        {
            XmlTable xmlTable = new XmlTable("ActionData");

            xmlTable.Parse(actionData);
            this.m_HeaderFieldName = xmlTable.GetValue("HeaderFieldName");
        }
Exemple #3
0
        internal UserMessageRuleAction_StoreToDiskFolder(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleActionType.StoreToDiskFolder, rule, owner, id, description)
        {
            XmlTable xmlTable = new XmlTable("ActionData");

            xmlTable.Parse(actionData);
            this.m_Folder = xmlTable.GetValue("Folder");
        }
        internal UserMessageRuleAction_ForwardToEmail(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleActionType.ForwardToEmail, rule, owner, id, description)
        {
            XmlTable xmlTable = new XmlTable("ActionData");

            xmlTable.Parse(actionData);
            this.m_EmailAddress = xmlTable.GetValue("Email");
        }
Exemple #5
0
 internal UserMessageRuleAction_StoreToFtp(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string host, int port, string userName, string password, string folder) : base(UserMessageRuleActionType.StoreToFTPFolder, rule, owner, id, description)
 {
     this.m_Server   = host;
     this.m_Port     = port;
     this.m_UserName = userName;
     this.m_Password = password;
     this.m_Folder   = folder;
 }
Exemple #6
0
        internal UserMessageRuleAction_ForwardToHost(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleActionType.ForwardToHost, rule, owner, id, description)
        {
            XmlTable xmlTable = new XmlTable("ActionData");

            xmlTable.Parse(actionData);
            this.m_Host = xmlTable.GetValue("Host");
            this.m_Port = Convert.ToInt32(xmlTable.GetValue("Port"));
        }
        internal UserMessageRuleAction_AutoResponse(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleActionType.AutoResponse, rule, owner, id, description)
        {
            XmlTable xmlTable = new XmlTable("ActionData");

            xmlTable.Parse(actionData);
            this.m_From    = xmlTable.GetValue("From");
            this.m_Message = Encoding.UTF8.GetBytes(xmlTable.GetValue("Message"));
        }
        internal UserMessageRuleAction_ExecuteProgram(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleActionType.ExecuteProgram, rule, owner, id, description)
        {
            XmlTable xmlTable = new XmlTable("ActionData");

            xmlTable.Parse(actionData);
            this.m_Program     = xmlTable.GetValue("Program");
            this.m_ProgramArgs = xmlTable.GetValue("Arguments");
        }
 internal UserMessageRuleActionBase(UserMessageRuleActionType actionType, UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description)
 {
     this.m_ActionType  = actionType;
     this.m_pRule       = rule;
     this.m_pOwner      = owner;
     this.m_ID          = id;
     this.m_Description = description;
 }
Exemple #10
0
        internal UserMessageRuleAction_PostToNntpNewsgroup(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleActionType.PostToNNTPNewsGroup, rule, owner, id, description)
        {
            XmlTable xmlTable = new XmlTable("ActionData");

            xmlTable.Parse(actionData);
            this.m_Server    = xmlTable.GetValue("Server");
            this.m_Port      = Convert.ToInt32(xmlTable.GetValue("Port"));
            this.m_Newsgroup = xmlTable.GetValue("Newsgroup");
        }
Exemple #11
0
        internal UserMessageRuleAction_StoreToFtp(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, byte[] actionData) : base(UserMessageRuleActionType.StoreToFTPFolder, rule, owner, id, description)
        {
            XmlTable xmlTable = new XmlTable("ActionData");

            xmlTable.Parse(actionData);
            this.m_Server   = xmlTable.GetValue("Server");
            this.m_Port     = Convert.ToInt32(xmlTable.GetValue("Port"));
            this.m_UserName = xmlTable.GetValue("User");
            this.m_Password = xmlTable.GetValue("Password");
            this.m_Folder   = xmlTable.GetValue("Folder");
        }
 internal UserMessageRuleAction_MoveToImapFolder(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string folder) : base(UserMessageRuleActionType.MoveToIMAPFolder, rule, owner, id, description)
 {
     this.m_Folder = folder;
 }
 internal UserMessageRuleAction_ExecuteProgram(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string program, string programArgs) : base(UserMessageRuleActionType.ExecuteProgram, rule, owner, id, description)
 {
     this.m_Program     = program;
     this.m_ProgramArgs = programArgs;
 }
Exemple #14
0
 internal UserMessageRuleAction_PostToHttp(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string url) : base(UserMessageRuleActionType.PostToHTTP, rule, owner, id, description)
 {
     this.m_Url = url;
 }
Exemple #15
0
 internal UserMessageRuleAction_ForwardToHost(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string host, int port) : base(UserMessageRuleActionType.ForwardToHost, rule, owner, id, description)
 {
     this.m_Host = host;
     this.m_Port = port;
 }
 internal UserMessageRuleAction_AutoResponse(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string from, byte[] message) : base(UserMessageRuleActionType.AutoResponse, rule, owner, id, description)
 {
     this.m_From    = from;
     this.m_Message = message;
 }
Exemple #17
0
 internal UserMessageRuleAction_StoreToDiskFolder(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string folder) : base(UserMessageRuleActionType.StoreToDiskFolder, rule, owner, id, description)
 {
     this.m_Folder = folder;
 }
 internal UserMessageRuleAction_AddHeaderField(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string headerFieldName, string headerFieldValue) : base(UserMessageRuleActionType.AddHeaderField, rule, owner, id, description)
 {
     this.m_HeaderFieldName  = headerFieldName;
     this.m_HeaderFieldValue = headerFieldValue;
 }
Exemple #19
0
 internal UserMessageRuleAction_PostToNntpNewsgroup(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string host, int port, string newsgroup) : base(UserMessageRuleActionType.PostToNNTPNewsGroup, rule, owner, id, description)
 {
     this.m_Server    = host;
     this.m_Port      = port;
     this.m_Newsgroup = newsgroup;
 }
Exemple #20
0
 internal UserMessageRuleAction_RemoveHeaderField(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string headerField) : base(UserMessageRuleActionType.RemoveHeaderField, rule, owner, id, description)
 {
     this.m_HeaderFieldName = headerField;
 }
 internal UserMessageRuleAction_ForwardToEmail(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description, string email) : base(UserMessageRuleActionType.ForwardToEmail, rule, owner, id, description)
 {
     this.m_EmailAddress = email;
 }
 internal UserMessageRuleAction_DeleteMessage(UserMessageRule rule, UserMessageRuleActionCollection owner, string id, string description) : base(UserMessageRuleActionType.DeleteMessage, rule, owner, id, description)
 {
 }