diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-13 19:39:37 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-13 19:39:37 +0400 |
commit | b0ddff4f0d56a877305649a14b902b3f23140b4b (patch) | |
tree | 65a2066d13b480b062b20036280d18321fb91e94 /src/message.c | |
parent | 091e84951a2b032bb2930b300ffe43eaf01a304e (diff) | |
download | rspamd-b0ddff4f0d56a877305649a14b902b3f23140b4b.tar.gz rspamd-b0ddff4f0d56a877305649a14b902b3f23140b4b.zip |
* Add new algorithm based on diff algorithm to compare relatively short text parts
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.c b/src/message.c index 8ff53ea93..93c9fb622 100644 --- a/src/message.c +++ b/src/message.c @@ -786,7 +786,7 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont #endif } - fuzzy_init_part (text_part, task->task_pool); + fuzzy_init_part (text_part, task->task_pool, task->cfg->max_diff); memory_pool_add_destructor (task->task_pool, (pool_destruct_func) free_byte_array_callback, text_part->content); task->text_parts = g_list_prepend (task->text_parts, text_part); } @@ -806,7 +806,7 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont text_part->orig = convert_text_to_utf (task, part_content, type, text_part); text_part->content = text_part->orig; url_parse_text (task->task_pool, task, text_part, FALSE); - fuzzy_init_part (text_part, task->task_pool); + fuzzy_init_part (text_part, task->task_pool, task->cfg->max_diff); task->text_parts = g_list_prepend (task->text_parts, text_part); } } |