From: Vsevolod Stakhov Date: Tue, 25 Sep 2018 15:54:31 +0000 (+0100) Subject: [CritFix] Increase default words_decay X-Git-Tag: 1.8.1~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b50a8429cf54f51d734edc79d2e56120da378648;p=thirdparty%2Frspamd.git [CritFix] Increase default words_decay --- 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