// Token: 0x060006A4 RID: 1700 RVA: 0x000344C4 File Offset: 0x000326C4 internal static InfobarMessage AddEmailToSendersList(UserContext userContext, HttpRequest httpRequest) { string formParameter = Utilities.GetFormParameter(httpRequest, "hidsndrslst"); string formParameter2 = Utilities.GetFormParameter(httpRequest, "hidsndreml"); string messageText; if (JunkEmailUtilities.Add(formParameter2, JunkEmailHelper.GetListType(formParameter), userContext, false, out messageText)) { return(InfobarMessage.CreateText(messageText, InfobarMessageType.Informational)); } return(InfobarMessage.CreateText(messageText, InfobarMessageType.Error)); }
public void Add() { string email = HttpUtility.HtmlDecode((string)base.GetParameter("sNE")); JunkEmailListType junkEmailListType = (JunkEmailListType)base.GetParameter("iLT"); bool isFromOptions = (bool)base.GetParameter("fFrmOpt"); string empty = string.Empty; bool flag = false; if (!JunkEmailUtilities.Add(email, junkEmailListType, base.UserContext, isFromOptions, 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)); }
public void AddSender() { JunkEmailListType junkEmailListType = (JunkEmailListType)base.GetParameter("iLT"); string text = (string)base.GetParameter("sId"); bool flag = (bool)base.GetParameter("fDmn"); if (OwaStoreObjectId.CreateFromString(text).IsConversationId) { return; } string s = string.Empty; bool flag2 = false; string senderSmtpAddress = Utilities.GetSenderSmtpAddress(text, base.UserContext); if (string.IsNullOrEmpty(senderSmtpAddress)) { flag2 = true; s = LocalizedStrings.GetNonEncoded(-562376136); } else { int num = senderSmtpAddress.IndexOf('@'); if (num < 0) { flag2 = true; s = LocalizedStrings.GetNonEncoded(-562376136); } else { int length = senderSmtpAddress.Length; if (!JunkEmailUtilities.Add(flag ? senderSmtpAddress.Substring(num, length - num) : senderSmtpAddress, junkEmailListType, base.UserContext, false, out s)) { flag2 = true; } } } if (flag2) { this.Writer.Write("<div id=fErr>1</div>"); } this.Writer.Write("<div id=sMsg>{0}</div>", Utilities.HtmlEncode(s)); }
// Token: 0x0600028E RID: 654 RVA: 0x000168D8 File Offset: 0x00014AD8 private void Add() { string formParameter = Utilities.GetFormParameter(this.request, "hidlst"); string text = Utilities.GetFormParameter(this.request, "txt" + formParameter).Trim(); if (string.IsNullOrEmpty(text)) { return; } string message; if (JunkEmailUtilities.Add(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; }