diff options
author | Ian C <ianc@noddybox.co.uk> | 2003-12-05 02:33:05 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2003-12-05 02:33:05 +0000 |
commit | c25680ee19e813f15f54b5abd43062bace295852 (patch) | |
tree | 24a5df3fabdad7c14f934973384098b8cc2717b4 /src/dbase.c | |
parent | 8520befe602e9b90d455342068a623f2cf89f631 (diff) |
Initial working version
Diffstat (limited to 'src/dbase.c')
-rw-r--r-- | src/dbase.c | 7 |
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; |