aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-11 15:54:47 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-11 15:54:47 +0100
commit4932b636ef23b7b0c9c356c9144457039253945e (patch)
tree0f086aac6c37acc408a85fcfd45800144b63574c /src/plugins
parentbcb5eaadd0b810b399fbdb133253bbc9ec7f060e (diff)
downloadrspamd-4932b636ef23b7b0c9c356c9144457039253945e.tar.gz
rspamd-4932b636ef23b7b0c9c356c9144457039253945e.zip
[Feature] Add more algorithms for shingles generation
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fuzzy_check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index a5b62875e..304ce3704 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -1068,7 +1068,8 @@ fuzzy_cmd_from_text_part (struct fuzzy_rule *rule,
rule->shingles_key->str);
sh = rspamd_shingles_generate (words,
rule->shingles_key->str, pool,
- rspamd_shingles_default_filter, NULL);
+ rspamd_shingles_default_filter, NULL,
+ RSPAMD_SHINGLES_OLD);
if (sh != NULL) {
memcpy (&shcmd->sgl, sh, sizeof (shcmd->sgl));
shcmd->basic.shingles_count = RSPAMD_SHINGLE_SIZE;