aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-04 17:29:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-04 17:29:46 +0100
commit9cd5065eace43916683dd113555c3e622e3d3ff6 (patch)
treefa1b199ad6819592a5e11e3c55385f40b6ac0ab9
parentdd8ec631d0308435438aef28bf1c4b4ac69fc765 (diff)
downloadrspamd-9cd5065eace43916683dd113555c3e622e3d3ff6.tar.gz
rspamd-9cd5065eace43916683dd113555c3e622e3d3ff6.zip
[Feature] Remove symbols weights on composites processing
Now Rspamd removes symbol's score not only from the metric but from an individual symbol as well.
-rw-r--r--src/libserver/composites.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/composites.c b/src/libserver/composites.c
index bca87d23a..d0cf26a95 100644
--- a/src/libserver/composites.c
+++ b/src/libserver/composites.c
@@ -360,6 +360,7 @@ composites_remove_symbols (gpointer key, gpointer value, gpointer data)
}
if (want_remove_score || want_forced) {
cd->metric_res->score -= rd->ms->score;
+ rd->ms->score = 0.0;
}
}
}