aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-03-20 13:51:37 +0100
committerJohannes Berg <johannes@sipsolutions.net>2008-03-20 13:51:37 +0100
commit0ac5aca79054773d6c03bc7febc81e3f22d0292f (patch)
tree52202c15fa878f8aa0c26fbca6a4e413fc71bffc
parenta5941271d9ba14dd198df01a13400af557ecf6ed (diff)
downloaddovecot-antispam-0ac5aca79054773d6c03bc7febc81e3f22d0292f.tar.gz
dovecot-antispam-0ac5aca79054773d6c03bc7febc81e3f22d0292f.tar.xz
dovecot-antispam-0ac5aca79054773d6c03bc7febc81e3f22d0292f.zip
make code for folder hook clearer
-rw-r--r--antispam-plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/antispam-plugin.c b/antispam-plugin.c
index 5dd9a02..c83d225 100644
--- a/antispam-plugin.c
+++ b/antispam-plugin.c
@@ -191,7 +191,7 @@ void PLUGIN_FUNCTION(init)(void)
}
/* set spam_folders to empty to only allow keywords */
- need_folder_hook = !!spam_folder_count;
+ need_folder_hook = spam_folder_count > 0;
need_keyword_hook = !!spam_keywords;
backend_init(global_pool);