aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-13 19:39:37 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-13 19:39:37 +0400
commitb0ddff4f0d56a877305649a14b902b3f23140b4b (patch)
tree65a2066d13b480b062b20036280d18321fb91e94 /src/cfg_utils.c
parent091e84951a2b032bb2930b300ffe43eaf01a304e (diff)
downloadrspamd-b0ddff4f0d56a877305649a14b902b3f23140b4b.tar.gz
rspamd-b0ddff4f0d56a877305649a14b902b3f23140b4b.zip
* Add new algorithm based on diff algorithm to compare relatively short text parts
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r--src/cfg_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c
index 56202d4f1..a34084cce 100644
--- a/src/cfg_utils.c
+++ b/src/cfg_utils.c
@@ -175,6 +175,9 @@ init_defaults (struct config_file *cfg)
cfg->statfile_sync_interval = 60000;
cfg->statfile_sync_timeout = 20000;
+ /* 20 Kb */
+ cfg->max_diff = 20480;
+
cfg->max_statfile_size = DEFAULT_STATFILE_SIZE;
cfg->modules_opts = g_hash_table_new (g_str_hash, g_str_equal);
cfg->variables = g_hash_table_new (g_str_hash, g_str_equal);