コード例 #1
0
        public static bool Contains(string from)
        {
            // All IBN User are included into white list (Automatically)
            #region Auto Users
            int emailUser = DBUser.GetUserByEmail(from, false);
            if (emailUser > 0)
            {
                return(true);
            }

            Client client = Common.GetClient(from);
            if (client != null)
            {
                return(true);
            }
            #endregion

            foreach (EMailMessageAntiSpamItemRow item in EMailMessageAntiSpamItemRow.List(from))
            {
                if (item.IsWhite)
                {
                    return(true);
                }
            }

            return(false);
        }
コード例 #2
0
        public static WhiteListItem[] List(string Keyword)
        {
            ArrayList retVal = new ArrayList();

            foreach (EMailMessageAntiSpamItemRow row in EMailMessageAntiSpamItemRow.List(true, Keyword))
            {
                retVal.Add(new WhiteListItem(row));
            }

            return((WhiteListItem[])retVal.ToArray(typeof(WhiteListItem)));
        }
コード例 #3
0
        public static BlackListItem[] List()
        {
            ArrayList retVal = new ArrayList();

            foreach (EMailMessageAntiSpamItemRow row in EMailMessageAntiSpamItemRow.List(true))
            {
                retVal.Add(new BlackListItem(row));
            }

            return((BlackListItem[])retVal.ToArray(typeof(BlackListItem)));
        }
コード例 #4
0
        public static bool Contains(string From)
        {
            if (string.IsNullOrEmpty(From))
            {
                return(true);
            }

            foreach (EMailMessageAntiSpamItemRow item in EMailMessageAntiSpamItemRow.List(From))
            {
                if (!item.IsWhite)
                {
                    return(true);
                }
            }

            return(false);
        }