aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/classifiers
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-14 13:37:01 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-14 13:37:18 +0000
commitf4d4c0fc55738682cc8b1819e19c496195e34e06 (patch)
tree2bb2bc5e0c59a3355023543b5eb12f59db46d4c8 /src/libstat/classifiers
parent4a17956f7b5b6268859445e1d2369abdb2965ae4 (diff)
downloadrspamd-f4d4c0fc55738682cc8b1819e19c496195e34e06.tar.gz
rspamd-f4d4c0fc55738682cc8b1819e19c496195e34e06.zip
[Fix] Ignore lua metatokens in bayes for now
Diffstat (limited to 'src/libstat/classifiers')
-rw-r--r--src/libstat/classifiers/bayes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstat/classifiers/bayes.c b/src/libstat/classifiers/bayes.c
index 98b3fd6ca..fb1ffdde2 100644
--- a/src/libstat/classifiers/bayes.c
+++ b/src/libstat/classifiers/bayes.c
@@ -112,6 +112,11 @@ bayes_classify_token (struct rspamd_classifier *ctx,
task = cl->task;
+ if (tok->flags & RSPAMD_STAT_TOKEN_FLAG_LUA_META) {
+ /* Ignore lua metatokens for now */
+ return;
+ }
+
for (i = 0; i < ctx->statfiles_ids->len; i++) {
id = g_array_index (ctx->statfiles_ids, gint, i);
st = g_ptr_array_index (ctx->ctx->statfiles, id);