// Token: 0x06002B6F RID: 11119 RVA: 0x000F3A30 File Offset: 0x000F1C30 protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.Message = base.Initialize <MessageItem>(new PropertyDefinition[] { MessageItemSchema.IsRead, BodySchema.Codepage, BodySchema.InternetCpid, MessageItemSchema.MessageAudioNotes, MessageItemSchema.SenderTelephoneNumber, ItemSchema.FlagStatus, ItemSchema.FlagCompleteTime, MessageItemSchema.ReplyTime, MessageItemSchema.RequireProtectedPlayOnPhone, ItemSchema.UtcDueDate, ItemSchema.UtcStartDate, ItemSchema.ReminderDueBy, ItemSchema.ReminderIsSet, StoreObjectSchema.EffectiveRights }); this.IrmItemHelper = new IRMItemHelper(this.Message, base.UserContext, base.IsPreviewForm, base.IsEmbeddedItem); using (UMClientCommon umclientCommon = new UMClientCommon(base.UserContext.ExchangePrincipal)) { this.isUMEnabled = umclientCommon.IsUMEnabled(); this.isPlayOnPhoneEnabled = umclientCommon.IsPlayOnPhoneEnabled(); } this.IrmItemHelper.IrmDecryptIfRestricted(); bool isSuspectedPhishingItem = false; bool isLinkEnabled = false; bool flag = false; this.isMacintoshPlatform = (Utilities.GetBrowserPlatform(base.Request.UserAgent) == BrowserPlatform.Macintosh); JunkEmailUtilities.GetJunkEmailPropertiesForItem(this.Message, base.IsEmbeddedItem, base.ForceEnableItemLink, base.UserContext, out this.isInJunkEmailFolder, out isSuspectedPhishingItem, out isLinkEnabled, out flag); this.toolbar = new ReadMessageToolbar(base.IsInDeleteItems, base.IsEmbeddedItem, this.Message, this.isInJunkEmailFolder, isSuspectedPhishingItem, isLinkEnabled, false, this.IrmItemHelper.IsReplyRestricted, this.IrmItemHelper.IsReplyAllRestricted, this.IrmItemHelper.IsForwardRestricted, this.IrmItemHelper.IsPrintRestricted); this.toolbar.ToolbarType = (base.IsPreviewForm ? ToolbarType.Preview : ToolbarType.Form); this.recipientWell = new MessageRecipientWell(this.Message); if (flag) { this.bodyMarkup = Markup.PlainText; } InfobarMessageBuilder.AddImportance(this.infobar, this.Message); InfobarMessageBuilder.AddFlag(this.infobar, this.Message, base.UserContext); InfobarMessageBuilder.AddSensitivity(this.infobar, this.Message); if (base.UserContext.IsIrmEnabled && Utilities.IsIrmRestrictedAndDecrypted(this.Message)) { InfobarMessageBuilder.AddIrmInformation(this.infobar, this.Message, base.IsPreviewForm, false, false, false); } if (!this.Message.IsRead && !base.IsPreviewForm && !base.IsEmbeddedItem) { this.Message.MarkAsRead(Utilities.ShouldSuppressReadReceipt(base.UserContext, this.Message), false); } }
// Token: 0x06002ADE RID: 10974 RVA: 0x000F1774 File Offset: 0x000EF974 protected void InitializeReadMessageFormElements() { bool flag = false; bool flag2 = false; bool flag3 = false; JunkEmailUtilities.GetJunkEmailPropertiesForItem(this.Message, base.IsEmbeddedItem, base.ForceEnableItemLink, base.UserContext, out this.isInJunkEmailFolder, out flag, out flag2, out flag3); this.isSuspectedPhishingItemWithoutLinkEnabled = (flag && !flag2); this.toolbar = new ReadMessageToolbar(base.IsInDeleteItems, base.IsEmbeddedItem, this.Message, this.isInJunkEmailFolder, flag, flag2, true, this.IrmItemHelper != null && this.IrmItemHelper.IsReplyRestricted, this.IrmItemHelper != null && this.IrmItemHelper.IsReplyAllRestricted, this.IrmItemHelper != null && this.IrmItemHelper.IsForwardRestricted, this.IrmItemHelper != null && this.IrmItemHelper.IsPrintRestricted); this.toolbar.ToolbarType = (base.IsPreviewForm ? ToolbarType.Preview : ToolbarType.Form); if (flag3) { this.bodyMarkup = Markup.PlainText; } this.recipientWell = new MessageRecipientWell(this.Message); RenderingUtilities.RenderReplyForwardMessageStatus(this.Message, this.infobar, base.UserContext); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.post = base.Initialize <PostItem>(ReadPost.prefetchProperties); if (!base.IsPreviewForm && !base.IsEmbeddedItem) { this.post.MarkAsRead(false); } bool flag = false; bool flag2 = false; bool flag3 = false; JunkEmailUtilities.GetJunkEmailPropertiesForItem(this.post, base.IsEmbeddedItem, base.ForceEnableItemLink, base.UserContext, out this.isInJunkmailFolder, out flag, out flag2, out flag3); this.isSuspectedPhishingItemWithoutLinkEnabled = (flag && !flag2); this.toolbar = new ReadPostToolbar(base.IsEmbeddedItem, base.Item); InfobarMessageBuilder.AddImportance(this.infobar, this.post); InfobarMessageBuilder.AddSensitivity(this.infobar, this.post); InfobarMessageBuilder.AddFlag(this.infobar, this.post, base.UserContext); InfobarMessageBuilder.AddCompliance(base.UserContext, this.infobar, this.post, false); }
// Token: 0x06002916 RID: 10518 RVA: 0x000E8828 File Offset: 0x000E6A28 protected override void OnLoad(EventArgs e) { base.OnLoad(e); string queryStringParameter = Utilities.GetQueryStringParameter(base.Request, "t"); this.MeetingPageWriterFactory(queryStringParameter, e); JunkEmailUtilities.GetJunkEmailPropertiesForItem(base.Item, base.IsEmbeddedItem, base.ForceEnableItemLink, base.UserContext, out this.isInJunkEmailFolder, out this.isSuspectedPhishingItem, out this.itemLinkEnabled, out this.isJunkOrPhishing); if (this.isJunkOrPhishing) { this.bodyMarkup = Markup.PlainText; } if (!ObjectClass.IsCalendarItemCalendarItemOccurrenceOrRecurrenceException(queryStringParameter) && !base.IsPreviewForm) { MeetingMessage meetingMessage = base.Item as MeetingMessage; if (meetingMessage == null) { throw new OwaInvalidOperationException("Item must be of MeetingMessage type"); } if (meetingMessage != null && !meetingMessage.IsRead) { meetingMessage.MarkAsRead(Utilities.ShouldSuppressReadReceipt(base.UserContext, meetingMessage), false); } } object obj = base.Item.TryGetProperty(ItemSchema.SentTime); if (obj != null && !(obj is PropertyError)) { this.sentTime = (ExDateTime)obj; } if (this.sharedFromOlderVersion) { this.meetingPageWriter.FormInfobar.AddMessage(SanitizedHtmlString.Format(LocalizedStrings.GetNonEncoded(1896884103), new object[] { this.receiverDisplayName }), InfobarMessageType.Informational); } }
// Token: 0x0600061F RID: 1567 RVA: 0x000307CC File Offset: 0x0002E9CC public static IList <AttachmentLink> GenerateNonEditableMessageBodyAndRenderInfobarMessages(Item item, TextWriter writer, OwaContext owaContext, Infobar infobar, bool allowWebBeacon, bool forceEnableItemLink, string itemType, string action, string state, bool isEmbedded, string attachmentUrl) { if (item == null) { throw new ArgumentNullException("item"); } if (writer == null) { throw new ArgumentNullException("writer"); } if (infobar == null) { throw new ArgumentNullException("infobar"); } if (owaContext == null) { throw new ArgumentNullException("owaContext"); } UserContext userContext = owaContext.UserContext; WebBeaconFilterLevels filterWebBeaconsAndHtmlForms = userContext.Configuration.FilterWebBeaconsAndHtmlForms; bool flag = false; bool flag2 = false; bool flag3 = false; bool flag4 = false; JunkEmailUtilities.GetJunkEmailPropertiesForItem(item, isEmbedded, forceEnableItemLink, userContext, out flag, out flag2, out flag3, out flag4); OwaSafeHtmlCallbackBase owaSafeHtmlCallbackBase; if (!flag4) { if (filterWebBeaconsAndHtmlForms == WebBeaconFilterLevels.DisableFilter || allowWebBeacon || Utilities.IsWebBeaconsAllowed(item)) { owaSafeHtmlCallbackBase = new OwaSafeHtmlAllowWebBeaconCallbacks(item, userContext.IsPublicLogon, isEmbedded, attachmentUrl, owaContext, false); } else { owaSafeHtmlCallbackBase = new OwaSafeHtmlOutboundCallbacks(item, userContext.IsPublicLogon, isEmbedded, attachmentUrl, false, owaContext, false); } } else { owaSafeHtmlCallbackBase = new OwaSafeHtmlOutboundCallbacks(item, userContext.IsPublicLogon, isEmbedded, attachmentUrl, true, owaContext, false); } BodyConversionUtilities.RenderReadBody(writer, item, owaSafeHtmlCallbackBase, flag4); bool hasBlockedImages = owaSafeHtmlCallbackBase.HasBlockedImages; if (flag) { if (flag2) { infobar.AddMessageText(LocalizedStrings.GetNonEncoded(1581910613) + " " + LocalizedStrings.GetNonEncoded(614784743), InfobarMessageType.Phishing); } else if (userContext.IsJunkEmailEnabled) { infobar.AddMessageText(LocalizedStrings.GetNonEncoded(59853257) + " " + LocalizedStrings.GetNonEncoded(385373859), InfobarMessageType.JunkEmail); } } else if (flag2 && !flag3) { string s = string.Format(CultureInfo.InvariantCulture, "<a id=\"aIbBlk\" href=\"#\" onclick=\"return onClkBm('{0}', 1, 0)\">{1}</a> {2} ", new object[] { itemType, LocalizedStrings.GetHtmlEncoded(-672110188), LocalizedStrings.GetHtmlEncoded(-1020475744) }); string format = "<a href=\"#\" onClick=opnHlp('" + Utilities.JavascriptEncode(Utilities.BuildEhcHref(HelpIdsLight.EmailSafetyLight.ToString())) + "')>{0}</a>"; string s2 = string.Format(CultureInfo.InvariantCulture, format, new object[] { LocalizedStrings.GetHtmlEncoded(338562664) }); infobar.AddMessageHtml(SanitizedHtmlString.Format("{0}{1}{2}", new object[] { LocalizedStrings.GetNonEncoded(1581910613), SanitizedHtmlString.GetSanitizedStringWithoutEncoding(s), SanitizedHtmlString.GetSanitizedStringWithoutEncoding(s2) }), InfobarMessageType.Phishing); } else if (hasBlockedImages) { if (filterWebBeaconsAndHtmlForms == WebBeaconFilterLevels.UserFilterChoice) { string s3 = string.Format(CultureInfo.InvariantCulture, "<a id=\"aIbBlk\" href=\"#\" onclick=\"return onClkBm('{0}', 1, 1);\">{1}</a>", new object[] { itemType, LocalizedStrings.GetHtmlEncoded(469213884) }); infobar.AddMessageHtml(SanitizedHtmlString.Format(LocalizedStrings.GetHtmlEncoded(2063285740), new object[] { SanitizedHtmlString.GetSanitizedStringWithoutEncoding(s3) }), InfobarMessageType.Informational); } else if (filterWebBeaconsAndHtmlForms == WebBeaconFilterLevels.ForceFilter) { infobar.AddMessageLocalized(-1196115124, InfobarMessageType.Informational); } } if (owaSafeHtmlCallbackBase.HasRtfEmbeddedImages) { infobar.AddMessageLocalized(1338319428, InfobarMessageType.Informational); } return(owaSafeHtmlCallbackBase.AttachmentLinks); }
// Token: 0x06002FBB RID: 12219 RVA: 0x001156A4 File Offset: 0x001138A4 public static IList <AttachmentLink> GenerateNonEditableMessageBodyAndRenderInfobarMessages(Item item, TextWriter writer, OwaContext owaContext, Infobar infobar, bool allowWebBeacon, bool forceEnableItemLink, string itemType, string action, string state, bool isEmbedded, string attachmentUrl) { if (item == null) { throw new ArgumentNullException("item"); } if (writer == null) { throw new ArgumentNullException("writer"); } if (infobar == null) { throw new ArgumentNullException("infobar"); } if (owaContext == null) { throw new ArgumentNullException("context"); } UserContext userContext = owaContext.UserContext; WebBeaconFilterLevels filterWebBeaconsAndHtmlForms = userContext.Configuration.FilterWebBeaconsAndHtmlForms; bool flag = false; bool flag2 = false; bool flag3 = false; bool flag4 = false; JunkEmailUtilities.GetJunkEmailPropertiesForItem(item, isEmbedded, forceEnableItemLink, userContext, out flag, out flag2, out flag3, out flag4); OwaSafeHtmlOutboundCallbacks owaSafeHtmlOutboundCallbacks; if (!flag4) { if (filterWebBeaconsAndHtmlForms == WebBeaconFilterLevels.DisableFilter || allowWebBeacon || (!Utilities.IsPublic(item) && Utilities.IsWebBeaconsAllowed(item))) { owaSafeHtmlOutboundCallbacks = new OwaSafeHtmlAllowWebBeaconCallbacks(item, userContext.IsPublicLogon, isEmbedded, attachmentUrl, owaContext, false); } else { owaSafeHtmlOutboundCallbacks = new OwaSafeHtmlOutboundCallbacks(item, userContext.IsPublicLogon, isEmbedded, attachmentUrl, false, owaContext, false); } } else { owaSafeHtmlOutboundCallbacks = new OwaSafeHtmlOutboundCallbacks(item, userContext.IsPublicLogon, isEmbedded, attachmentUrl, true, owaContext, false); } BodyConversionUtilities.RenderReadBody(writer, item, owaSafeHtmlOutboundCallbacks, flag4, userContext.IsIrmEnabled); bool flag5 = owaSafeHtmlOutboundCallbacks.HasBlockedImages || owaSafeHtmlOutboundCallbacks.HasBlockedForms; if (flag) { if (flag2) { infobar.AddMessage(SanitizedHtmlString.Format("{0} {1}", new object[] { LocalizedStrings.GetNonEncoded(1581910613), LocalizedStrings.GetNonEncoded(-2026026928) }), InfobarMessageType.Phishing); } else if (userContext.IsJunkEmailEnabled) { infobar.AddMessage(SanitizedHtmlString.Format("{0} {1}", new object[] { LocalizedStrings.GetNonEncoded(59853257), LocalizedStrings.GetNonEncoded(-2129859766) }), InfobarMessageType.JunkEmail); } } else if (flag2 && !flag3) { string s = "<a id=\"aIbBlk\" href=\"#\"" + SanitizedHtmlString.Format("_sIT=\"{0}\" _sAct=\"{1}\" _iSt=\"{2}\" _fPhsh=1 _fAWB={3}", new object[] { itemType, action, state, allowWebBeacon ? 1 : 0 }) + string.Format(CultureInfo.InvariantCulture, ">{0}</a> {1} ", new object[] { LocalizedStrings.GetHtmlEncoded(-672110188), LocalizedStrings.GetHtmlEncoded(-1020475744) }); string s2 = string.Format(CultureInfo.InvariantCulture, "<a href=\"#\" " + Utilities.GetScriptHandler("onclick", "opnHlp(\"" + Utilities.JavascriptEncode(Utilities.BuildEhcHref(HelpIdsLight.EmailSafetyLight.ToString())) + "\");") + ">{0}</a>", new object[] { LocalizedStrings.GetHtmlEncoded(338562664) }); infobar.AddMessage(SanitizedHtmlString.Format("{0}{1}{2}", new object[] { SanitizedHtmlString.FromStringId(1581910613), SanitizedHtmlString.GetSanitizedStringWithoutEncoding(s), SanitizedHtmlString.GetSanitizedStringWithoutEncoding(s2) }), InfobarMessageType.Phishing); } else if (flag5) { infobar.AddMessage(BodyConversionUtilities.GetWebBeaconBlockedInfobarMessage(filterWebBeaconsAndHtmlForms, SanitizedHtmlString.Format("_sIT=\"{0}\" _sAct=\"{1}\" _iSt=\"{2}\" _fPhsh={3} _fAWB=1", new object[] { itemType, action, state, forceEnableItemLink ? 1 : 0 }).ToString()), InfobarMessageType.Informational); } if (owaSafeHtmlOutboundCallbacks.HasRtfEmbeddedImages) { infobar.AddMessage(1338319428, InfobarMessageType.Informational); } return(owaSafeHtmlOutboundCallbacks.AttachmentLinks); }