private void GetAttachmentsFromEwsItem(BaseItemId baseItemId, ModernAttachmentGroup outGroup) { if (baseItemId == null || outGroup == null) { return; } string itemIdDisplayName = GetModernAttachmentsCommand.Utilities.GetItemIdDisplayName(baseItemId); try { IdAndSession idAndSession = base.IdConverter.ConvertItemIdToIdAndSessionReadOnly(baseItemId); using (Item item = Item.Bind(idAndSession.Session, idAndSession.Id)) { List <ModernAttachment> list = new List <ModernAttachment>(0); this.GetAttachmentsFromItemByStoreId(item.Session, item.Id, list); outGroup.AttachmentGroup = list.ToArray(); outGroup.Path = new string[] { GetModernAttachmentsCommand.Utilities.FormatParam("itemId.DisplayName", itemIdDisplayName), GetModernAttachmentsCommand.Utilities.FormatParam("itemId.Id", baseItemId.GetId()), GetModernAttachmentsCommand.Utilities.FormatParam("itemId.ChangeKey", baseItemId.GetChangeKey()) }; } } catch (Exception exception) { StructuredErrors structuredErrors = this.ConvertToNestedErrors(exception); structuredErrors.Path = new string[] { "GetAttachmentsFromEwsItem", GetModernAttachmentsCommand.Utilities.FormatParam("itemId.DisplayName", itemIdDisplayName), GetModernAttachmentsCommand.Utilities.FormatParam("itemId.Id", baseItemId.GetId()), GetModernAttachmentsCommand.Utilities.FormatParam("itemId.ChangeKey", baseItemId.GetChangeKey()) }; this.response.AddError(structuredErrors); } }
// Token: 0x06001A27 RID: 6695 RVA: 0x0005F2E8 File Offset: 0x0005D4E8 internal static void SetReceiveRequestLogData(PolicyTipRequestLogger policyTipRequestLogger, BaseItemId itemId, bool needToReclassify, bool bodyOrSubjectChanged, EmailAddressWrapper[] recipients, EventTrigger eventTrigger, bool customizedStringsNeeded, bool clientSupportsScanResultData, string scanResultData) { policyTipRequestLogger.AppendData("NeedToReclassify", needToReclassify ? "1" : "0"); policyTipRequestLogger.AppendData("ItemId", (itemId == null) ? string.Empty : (itemId.GetId() ?? string.Empty)); policyTipRequestLogger.AppendData("BodyChanged", bodyOrSubjectChanged ? "1" : "0"); string key = "Recipients"; string value; if (recipients != null) { value = string.Join(";", from recipient in recipients select PolicyTipRequestLogger.MarkAsPII((recipient == null || recipient.EmailAddress == null) ? string.Empty : recipient.EmailAddress)); } else { value = string.Empty; } policyTipRequestLogger.AppendData(key, value); policyTipRequestLogger.AppendData("EventTrigger", eventTrigger.ToString()); policyTipRequestLogger.AppendData("CustomizedStringsNeeded", customizedStringsNeeded ? "1" : "0"); policyTipRequestLogger.AppendData("ClientSupportsScanResultData", clientSupportsScanResultData ? "1" : "0"); policyTipRequestLogger.AppendData("ScanResultData", scanResultData ?? string.Empty); }