diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-12 13:50:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-12 13:50:10 +0100 |
commit | 274efffcbb21ea6fb32ee509b2449f69bcf98992 (patch) | |
tree | 373157af635e6810cc106da9e44d2d92ab604b30 /src/libmime/message.c | |
parent | c2e0f14cf3b208f75c6a92e8c532223d9ca8db22 (diff) | |
download | rspamd-274efffcbb21ea6fb32ee509b2449f69bcf98992.tar.gz rspamd-274efffcbb21ea6fb32ee509b2449f69bcf98992.zip |
[Feature] Rework and improve fuzzy storage
- Allow multiple algorithms in fuzzy rules
- Cache fuzzy requests to avoid expensive calculations for multiple
fuzzy storages
- Simplify request generating procedure
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r-- | src/libmime/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index d9e8dd18e..dbc9921d9 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1079,7 +1079,7 @@ rspamd_normalize_text_part (struct rspamd_task *task, * We use static hash seed if we would want to use that in shingles * computation in future */ - h = rspamd_cryptobox_fast_hash_specific (RSPAMD_CRYPTOBOX_MUMHASH, + h = rspamd_cryptobox_fast_hash_specific (RSPAMD_CRYPTOBOX_HASHFAST_INDEPENDENT, w->begin, w->len, words_hash_seed); g_array_append_val (part->normalized_hashes, h); } |