Exemple #1
0
        // Token: 0x06000B9F RID: 2975 RVA: 0x00051624 File Offset: 0x0004F824
        public static bool IsSuspectedPhishingItem(IStorePropertyBag storePropertyBag)
        {
            if (storePropertyBag == null)
            {
                throw new ArgumentNullException("storePropertyBag");
            }
            int    itemPhishingLevel = 1;
            object obj = storePropertyBag.TryGetProperty(ItemSchema.EdgePcl);

            if (!(obj is PropertyError))
            {
                itemPhishingLevel = (int)obj;
            }
            return(JunkEmailUtilities.IsSuspectedPhishingItem(itemPhishingLevel));
        }
Exemple #2
0
        // 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);
        }