aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-07 15:42:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-07 15:42:19 +0100
commit944c70abcfdc4f3e32be83910081ad68dacde2bf (patch)
tree9c1c5ec140456388514b168fb5372bec9ea89d85 /src/libstat
parentb90c3fa13fc6aab33b07f836f1ea01639dba64a2 (diff)
downloadrspamd-944c70abcfdc4f3e32be83910081ad68dacde2bf.tar.gz
rspamd-944c70abcfdc4f3e32be83910081ad68dacde2bf.zip
[Minor] Properly set flag on text tokens
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/tokenizers/tokenizers.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstat/tokenizers/tokenizers.c b/src/libstat/tokenizers/tokenizers.c
index 0902ceb05..ac7f8be85 100644
--- a/src/libstat/tokenizers/tokenizers.c
+++ b/src/libstat/tokenizers/tokenizers.c
@@ -393,7 +393,7 @@ start_over:
if (rspamd_utf_word_valid (text, text + len, last, p)) {
token.begin = text + last;
token.len = p - last;
- token.flags = 0;
+ token.flags = RSPAMD_STAT_TOKEN_FLAG_TEXT;
}
}
}
@@ -407,7 +407,7 @@ start_over:
if (rspamd_utf_word_valid (text, text + len, last, p)) {
token.begin = text + last;
token.len = p - last;
- token.flags = 0;
+ token.flags = RSPAMD_STAT_TOKEN_FLAG_TEXT;
}
}
else {
@@ -415,7 +415,7 @@ start_over:
if (rspamd_utf_word_valid (text, text + len, last, p)) {
token.begin = text + last;
token.len = p - last;
- token.flags = 0;
+ token.flags = RSPAMD_STAT_TOKEN_FLAG_TEXT;
}
}
}
@@ -423,6 +423,7 @@ start_over:
if (rspamd_utf_word_valid (text, text + len, last, p)) {
token.begin = text + last;
token.len = p - last;
+ token.flags = RSPAMD_STAT_TOKEN_FLAG_TEXT;
}
}