From b50a8429cf54f51d734edc79d2e56120da378648 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 25 Sep 2018 16:54:31 +0100 Subject: [PATCH] [CritFix] Increase default words_decay --- conf/options.inc | 2 +- src/libserver/cfg_utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/options.inc b/conf/options.inc index f374fe76cf..a75c6341d8 100644 --- a/conf/options.inc +++ b/conf/options.inc @@ -34,7 +34,7 @@ allow_raw_input = true; # Start ignore words when reaching the following limit, so the total # amount of words processed will not be *LIKELY more than the twice of that limit -words_decay = 200; +words_decay = 600; # Write statistics about rspamd usage to the round-robin database rrd = "${DBDIR}/rspamd.rrd"; diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index fa1fac9350..f0b0a079aa 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -41,7 +41,7 @@ #define DEFAULT_MAP_FILE_WATCH_MULTIPLIER 1 #define DEFAULT_MIN_WORD 0 #define DEFAULT_MAX_WORD 40 -#define DEFAULT_WORDS_DECAY 200 +#define DEFAULT_WORDS_DECAY 600 #define DEFAULT_MAX_MESSAGE (50 * 1024 * 1024) #define DEFAULT_MAX_PIC (1 * 1024 * 1024) #define DEFAULT_MAX_SHOTS 100 -- 2.47.3