aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-04 20:39:12 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-04 20:39:12 +0300
commit267c8bf962fbfd5ab7384ba25043ae649dfbe928 (patch)
tree3689fd1133d18093c63878b0de295df7a6d6ce4e /src
parent12f589d442290b13dae6a3cb0942150ae6d5eb93 (diff)
downloadrspamd-267c8bf962fbfd5ab7384ba25043ae649dfbe928.tar.gz
rspamd-267c8bf962fbfd5ab7384ba25043ae649dfbe928.zip
Fix expiring of fuzzy hashes.
Diffstat (limited to 'src')
-rw-r--r--src/fuzzy_storage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index f8d4a855a..344a0e345 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -754,6 +754,7 @@ init_fuzzy_storage (void)
ctx->max_mods = DEFAULT_MOD_LIMIT;
ctx->frequent_score = DEFAULT_FREQUENT_SCORE;
+ ctx->expire = DEFAULT_EXPIRE;
register_worker_opt (TYPE_FUZZY, "hashfile", xml_handle_string, ctx,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, hashfile));
@@ -761,6 +762,8 @@ init_fuzzy_storage (void)
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, max_mods));
register_worker_opt (TYPE_FUZZY, "frequent_score", xml_handle_uint32, ctx,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, frequent_score));
+ register_worker_opt (TYPE_FUZZY, "expire", xml_handle_seconds, ctx,
+ G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, expire));
register_worker_opt (TYPE_FUZZY, "use_judy", xml_handle_boolean, ctx,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, use_judy));