summaryrefslogtreecommitdiffstats
path: root/src/plugins/chartable.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-12 17:22:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-12 17:22:33 +0100
commit9fb4a7f6e61d361b46eaae0c6b8dbe2805905e36 (patch)
treef68c936404bf6c5ab1e4e780dacb952f6882695c /src/plugins/chartable.c
parentaef19db4a81bcc40db2047c1c540f09f07fc9fd1 (diff)
downloadrspamd-9fb4a7f6e61d361b46eaae0c6b8dbe2805905e36.tar.gz
rspamd-9fb4a7f6e61d361b46eaae0c6b8dbe2805905e36.zip
Rework symbols weights.
Diffstat (limited to 'src/plugins/chartable.c')
-rw-r--r--src/plugins/chartable.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c
index c0c68f71a..1cb1c7ed7 100644
--- a/src/plugins/chartable.c
+++ b/src/plugins/chartable.c
@@ -104,11 +104,13 @@ chartable_module_config (struct rspamd_config *cfg)
chartable_module_ctx->threshold = DEFAULT_THRESHOLD;
}
- rspamd_symbols_cache_add_symbol_normal (cfg->cache,
+ rspamd_symbols_cache_add_symbol (cfg->cache,
chartable_module_ctx->symbol,
- 1,
+ 0,
chartable_symbol_callback,
- NULL);
+ NULL,
+ SYMBOL_TYPE_NORMAL,
+ -1);
return res;
}