aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-01 23:56:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-01 23:56:58 +0000
commitaf918845b6a04565a60c7eb7058099575db2d281 (patch)
tree4f6c8c32aeb4fd12596941f3b3c1b99a7b2d2a76 /src/libserver/cfg_utils.c
parent2e41b2e8cc9325f61c80e12f3f93735e411d12e5 (diff)
downloadrspamd-af918845b6a04565a60c7eb7058099575db2d281.tar.gz
rspamd-af918845b6a04565a60c7eb7058099575db2d281.zip
Add symbols_scores in log file
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index a3d801939..07d9ae44d 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -354,6 +354,10 @@ rspamd_config_process_var (struct rspamd_config *cfg, const rspamd_ftok_t *var,
else if (rspamd_ftok_cstr_equal (&tok, "symbols", TRUE)) {
type = RSPAMD_LOG_SYMBOLS;
}
+ else if (rspamd_ftok_cstr_equal (&tok, "symbols_scores", TRUE)) {
+ type = RSPAMD_LOG_SYMBOLS;
+ flags |= RSPAMD_LOG_FLAG_SYMBOLS_SCORES;
+ }
else if (rspamd_ftok_cstr_equal (&tok, "ip", TRUE)) {
type = RSPAMD_LOG_IP;
}