diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-26 21:43:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-26 21:43:52 +0100 |
commit | 277ffc972d161a0928bc07c2e5d110b00115744c (patch) | |
tree | 246b76ade650c124e987f9ff4a662ded8b23d07e /src/libstat/stat_process.c | |
parent | e38b84cd48f8c465b94395a5641f85209ab22b68 (diff) | |
download | rspamd-277ffc972d161a0928bc07c2e5d110b00115744c.tar.gz rspamd-277ffc972d161a0928bc07c2e5d110b00115744c.zip |
Allow adding of prefix for tokenizers.
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r-- | src/libstat/stat_process.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 536db9b16..458c42cad 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -318,11 +318,11 @@ rspamd_stat_process_tokenize (struct rspamd_tokenizer_config *cf, if (!IS_PART_EMPTY (part) && part->words != NULL) { if (compat) { tok->tokenizer->tokenize_func (cf, task->task_pool, - part->words, tok->tokens, IS_PART_UTF (part)); + part->words, tok->tokens, IS_PART_UTF (part), NULL); } else { tok->tokenizer->tokenize_func (cf, task->task_pool, - part->normalized_words, tok->tokens, IS_PART_UTF (part)); + part->normalized_words, tok->tokens, IS_PART_UTF (part), NULL); } } } @@ -342,7 +342,8 @@ rspamd_stat_process_tokenize (struct rspamd_tokenizer_config *cf, task->task_pool, words, tok->tokens, - TRUE); + TRUE, + "SUBJECT"); g_array_free (words, TRUE); } } |