Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
 // Token: 0x06000BA7 RID: 2983 RVA: 0x000517F0 File Offset: 0x0004F9F0
 public static bool IsJunkOrPhishing(IStorePropertyBag storePropertyBag, bool isEmbeddedItem, UserContext userContext)
 {
     return(JunkEmailUtilities.IsJunkOrPhishing(storePropertyBag, isEmbeddedItem, false, userContext));
 }