// Token: 0x06000BA5 RID: 2981 RVA: 0x00051774 File Offset: 0x0004F974 public static void SortJunkEmailIds(UserContext userContext, StoreObjectId[] sourceIds, out StoreObjectId[] junkIds, out StoreObjectId[] normalIds) { List <StoreObjectId> list = new List <StoreObjectId>(); List <StoreObjectId> list2 = new List <StoreObjectId>(); for (int i = 0; i < sourceIds.Length; i++) { try { if (JunkEmailUtilities.IsInJunkEmailFolder(sourceIds[i], userContext)) { list.Add(sourceIds[i]); } else { list2.Add(sourceIds[i]); } } catch (ObjectNotFoundException) { } } junkIds = list.ToArray(); normalIds = list2.ToArray(); }
// Token: 0x06000BA2 RID: 2978 RVA: 0x000516AC File Offset: 0x0004F8AC public static bool IsInJunkEmailFolder(StoreObjectId itemId, UserContext userContext) { bool result; using (Item item = Item.BindAsMessage(userContext.MailboxSession, itemId)) { result = JunkEmailUtilities.IsInJunkEmailFolder(item, false, userContext); } return(result); }
// Token: 0x06000BA9 RID: 2985 RVA: 0x00051840 File Offset: 0x0004FA40 public static void GetJunkEmailPropertiesForItem(IStorePropertyBag storePropertyBag, bool isEmbedded, bool forceEnableItemLink, UserContext userContext, out bool isInJunkEmailFolder, out bool isSuspectedPhishingItem, out bool itemLinkEnabled, out bool isJunkOrPhishing) { if (storePropertyBag == null) { throw new ArgumentNullException("storePropertyBag"); } if (userContext == null) { throw new ArgumentNullException("userContext"); } isInJunkEmailFolder = JunkEmailUtilities.IsInJunkEmailFolder(storePropertyBag, isEmbedded, userContext); isSuspectedPhishingItem = JunkEmailUtilities.IsSuspectedPhishingItem(storePropertyBag); bool flag = JunkEmailUtilities.IsItemLinkEnabled(storePropertyBag); itemLinkEnabled = (forceEnableItemLink || flag); isJunkOrPhishing = JunkEmailUtilities.IsJunkOrPhishing(isInJunkEmailFolder, isSuspectedPhishingItem, itemLinkEnabled); }
// Token: 0x06000BA3 RID: 2979 RVA: 0x000516EC File Offset: 0x0004F8EC public static bool IsInJunkEmailFolder(OwaStoreObjectId itemId, UserContext userContext) { return(!itemId.IsPublic && JunkEmailUtilities.IsInJunkEmailFolder(itemId.StoreObjectId, userContext)); }