/// <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"); }
/// <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"); }
/// <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"); }
/// <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="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"); }
/// <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_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 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"); }
/// <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"); }
/// <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"); }
/// <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"); }
/// <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"); }
/// <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"); }
/// <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"); }
/// <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"); }
/// <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")); }
/// <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")); }
/// <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"); }
/// <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")); }
/// <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 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"); }
/// <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"); }
/// <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"); }
/// <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"); }
/// <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")); }
/// <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"); }
/// <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"); }