From c25680ee19e813f15f54b5abd43062bace295852 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 5 Dec 2003 02:33:05 +0000 Subject: Initial working version --- src/dbase.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dbase.c') diff --git a/src/dbase.c b/src/dbase.c index 5eca1a9..14263dd 100644 --- a/src/dbase.c +++ b/src/dbase.c @@ -221,10 +221,17 @@ void DBTrustedDomain(const char *domain) int DBBlockMessage(const POP3Message *msg) { + static const char *html="text/html"; DString ds; const Domain *dom; int f; + if (ConfigInt(CONFIG_BLOCKHTML) && + strncmp(msg->content_type,html,strlen(html))==0) + { + return TRUE; + } + if (IsTrustedDomain(msg->from_domain)) return FALSE; -- cgit v1.2.3