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); }
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))); }
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))); }
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); }