Beispiel #1
0
        public void Edit()
        {
            string            oldEmail          = HttpUtility.HtmlDecode((string)base.GetParameter("sOE"));
            string            newEmail          = HttpUtility.HtmlDecode((string)base.GetParameter("sNE"));
            JunkEmailListType junkEmailListType = (JunkEmailListType)base.GetParameter("iLT");
            string            empty             = string.Empty;
            bool flag = false;

            if (!JunkEmailUtilities.Edit(oldEmail, newEmail, junkEmailListType, base.UserContext, true, out empty))
            {
                flag = true;
            }
            if (flag)
            {
                this.Writer.Write("<div id=fErr>1</div>");
            }
            this.Writer.Write("<div id=sMsg>{0}</div>", Utilities.HtmlEncode(empty));
        }
Beispiel #2
0
        // Token: 0x0600028F RID: 655 RVA: 0x00016968 File Offset: 0x00014B68
        private void Edit()
        {
            string formParameter = Utilities.GetFormParameter(this.request, "hidlst");
            string text          = Utilities.GetFormParameter(this.request, "txt" + formParameter).Trim();

            if (string.IsNullOrEmpty(text))
            {
                return;
            }
            string formParameter2 = Utilities.GetFormParameter(this.request, "hidoldeml");
            string message;

            if (JunkEmailUtilities.Edit(formParameter2, text, JunkEmailHelper.GetListType(formParameter), this.userContext, true, out message))
            {
                base.SetInfobarMessage(message, InfobarMessageType.Informational);
                this.junkEmailRule = this.userContext.MailboxSession.JunkEmailRule;
                return;
            }
            base.SetInfobarMessage(message, InfobarMessageType.Error);
            this.initialInputs[formParameter] = text;
        }