diff 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 |