summaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 510a6661a..28310da57 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -34,6 +34,7 @@
#include "map.h"
#include "dynamic_cfg.h"
#include "utlist.h"
+#include "stat_api.h"
#define DEFAULT_SCORE 10.0
@@ -385,6 +386,12 @@ rspamd_config_post_load (struct rspamd_config *cfg)
/* Lua options */
(void)rspamd_lua_post_load_config (cfg);
init_dynamic_config (cfg);
+
+ rspamd_stat_init (rspamd_main->cfg);
+ rspamd_url_init (rspamd_main->cfg->tld_file);
+
+ /* Insert classifiers symbols */
+ (void)rspamd_config_insert_classify_symbols (rspamd_main->cfg);
}
#if 0