summaryrefslogtreecommitdiff
path: root/src/dbase.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2003-12-05 19:38:37 +0000
committerIan C <ianc@noddybox.co.uk>2003-12-05 19:38:37 +0000
commitf1658930db64af8fecff9c8697592f676114409c (patch)
treef534fb7e6c13801eaa0807cc59df505bcf17cfb7 /src/dbase.c
parentc25680ee19e813f15f54b5abd43062bace295852 (diff)
Changed ordering so that HTML block doesn't apply to trusted messages
Diffstat (limited to 'src/dbase.c')
-rw-r--r--src/dbase.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/dbase.c b/src/dbase.c
index 14263dd..ce568af 100644
--- a/src/dbase.c
+++ b/src/dbase.c
@@ -226,18 +226,16 @@ int DBBlockMessage(const POP3Message *msg)
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;
if (IsTrustedUser(msg->from_uname))
return FALSE;
+ if (ConfigInt(CONFIG_BLOCKHTML) &&
+ strncmp(msg->content_type,html,strlen(html))==0)
+ return TRUE;
+
if (!(dom=GetDomain(msg->from_domain)))
return FALSE;