From ba850e0b86aa9fc555426422191be0aec80bb7d2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 12 Nov 2015 18:11:10 +0000 Subject: Add max_word_len and words_decay options --- src/libserver/cfg_utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libserver/cfg_utils.c') diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 568efe934..75768c588 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -43,6 +43,7 @@ #define DEFAULT_RLIMIT_MAXCORE 0 #define DEFAULT_MAP_TIMEOUT 10 #define DEFAULT_MIN_WORD 4 +#define DEFAULT_MAX_WORD 40 struct rspamd_ucl_map_cbdata { struct rspamd_config *cfg; @@ -185,6 +186,8 @@ rspamd_config_defaults (struct rspamd_config *cfg) " $time_virtual virtual, dns req: $dns_req"; /* Allow non-mime input by default */ cfg->allow_raw_input = TRUE; + /* Default maximum words processed */ + cfg->words_decay = 200; } void -- cgit v1.2.3