From: Vsevolod Stakhov Date: Fri, 5 Sep 2014 12:01:53 +0000 (+0100) Subject: Use normal naming for `hashfile` option. X-Git-Tag: 0.7.0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f26c3c379d56ed31b128f2c680da2bc2af8ebc3;p=thirdparty%2Frspamd.git Use normal naming for `hashfile` option. It can be also named as `hash_file` now. --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index c32ed61fac..06c8b393ad 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -524,7 +524,7 @@ check_hash_node (GQueue *hash, fuzzy_hash_t *s, gint update_value, return NULL; } else if (h->h.block_size== s->block_size) { - msg_debug ("fuzzy hash was found in judy tree"); + msg_debug ("fuzzy hash was found in tree"); if (update_value) { h->value += update_value; } @@ -976,6 +976,10 @@ init_fuzzy (struct rspamd_config *cfg) rspamd_rcl_parse_struct_string, ctx, G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, hashfile), 0); + rspamd_rcl_register_worker_option (cfg, type, "hash_file", + rspamd_rcl_parse_struct_string, ctx, + G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, hashfile), 0); + rspamd_rcl_register_worker_option (cfg, type, "max_mods", rspamd_rcl_parse_struct_integer, ctx, G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx,