summaryrefslogtreecommitdiff
path: root/src/dbase.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2003-12-05 02:33:05 +0000
committerIan C <ianc@noddybox.co.uk>2003-12-05 02:33:05 +0000
commitc25680ee19e813f15f54b5abd43062bace295852 (patch)
tree24a5df3fabdad7c14f934973384098b8cc2717b4 /src/dbase.c
parent8520befe602e9b90d455342068a623f2cf89f631 (diff)
Initial working version
Diffstat (limited to 'src/dbase.c')
-rw-r--r--src/dbase.c7
1 files changed, 7 insertions, 0 deletions
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;