diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-04 17:29:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-04 17:29:46 +0100 |
commit | 9cd5065eace43916683dd113555c3e622e3d3ff6 (patch) | |
tree | fa1b199ad6819592a5e11e3c55385f40b6ac0ab9 | |
parent | dd8ec631d0308435438aef28bf1c4b4ac69fc765 (diff) | |
download | rspamd-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.c | 1 |
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; } } } |