]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Feature] Remove symbols weights on composites processing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Oct 2016 16:29:46 +0000 (17:29 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Oct 2016 16:29:46 +0000 (17:29 +0100)
Now Rspamd removes symbol's score not only from the metric but from an
individual symbol as well.

src/libserver/composites.c

index bca87d23a2bcb8d7b6bf4a5ab55eec8e1d6d0031..d0cf26a958d22450cd59a413953a5acdf8c38618 100644 (file)
@@ -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;
                }
        }
 }