diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-12 18:12:44 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-12 18:12:44 +0000 |
commit | 43394f8ce6a64df104f77aaa071e802d1fede4e5 (patch) | |
tree | e39450377be04841808998289f4792210968a859 /src/libserver/cfg_utils.c | |
parent | ba850e0b86aa9fc555426422191be0aec80bb7d2 (diff) | |
download | rspamd-43394f8ce6a64df104f77aaa071e802d1fede4e5.tar.gz rspamd-43394f8ce6a64df104f77aaa071e802d1fede4e5.zip |
Some more refactoring for new options
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r-- | src/libserver/cfg_utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 75768c588..acdf8979e 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -44,6 +44,7 @@ #define DEFAULT_MAP_TIMEOUT 10 #define DEFAULT_MIN_WORD 4 #define DEFAULT_MAX_WORD 40 +#define DEFAULT_WORDS_DECAY 200 struct rspamd_ucl_map_cbdata { struct rspamd_config *cfg; @@ -175,7 +176,6 @@ rspamd_config_defaults (struct rspamd_config *cfg) cfg->log_level = G_LOG_LEVEL_WARNING; cfg->log_extended = TRUE; - cfg->min_word_len = DEFAULT_MIN_WORD; cfg->dns_max_requests = 64; cfg->history_rows = 200; @@ -187,7 +187,9 @@ rspamd_config_defaults (struct rspamd_config *cfg) /* Allow non-mime input by default */ cfg->allow_raw_input = TRUE; /* Default maximum words processed */ - cfg->words_decay = 200; + cfg->words_decay = DEFAULT_WORDS_DECAY; + cfg->min_word_len = DEFAULT_MIN_WORD; + cfg->max_word_len = DEFAULT_MAX_WORD; } void |