diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-12 18:11:10 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-12 18:11:10 +0000 |
commit | ba850e0b86aa9fc555426422191be0aec80bb7d2 (patch) | |
tree | 03f53fd7749815247d956c9c56eb62c62ff85f02 /src/libserver/cfg_utils.c | |
parent | 5784f28e0f559f4dbde268276e3bc46ebf3c3e7f (diff) | |
download | rspamd-ba850e0b86aa9fc555426422191be0aec80bb7d2.tar.gz rspamd-ba850e0b86aa9fc555426422191be0aec80bb7d2.zip |
Add max_word_len and words_decay options
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r-- | src/libserver/cfg_utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |