aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-08 09:51:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-08 09:51:19 +0100
commit89033279e73e0dc548b87785b415b4daef5b1dce (patch)
tree40da8bae7fdf22778d9cba44e5bfca04bf08ff2a /src
parent37414297fe03d16f0b3bdff174980c2984e652a3 (diff)
downloadrspamd-89033279e73e0dc548b87785b415b4daef5b1dce.tar.gz
rspamd-89033279e73e0dc548b87785b415b4daef5b1dce.zip
[Minor] Remove multiple metrics support when adding results
Diffstat (limited to 'src')
-rw-r--r--src/libmime/filter.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c
index 51a2d5c47..18ffce903 100644
--- a/src/libmime/filter.c
+++ b/src/libmime/filter.c
@@ -264,29 +264,15 @@ insert_result_common (struct rspamd_task *task,
const gchar *opt,
gboolean single)
{
- struct rspamd_metric *metric;
- GList *cur, *metric_list;
struct rspamd_symbol_result *s = NULL;
- metric_list = g_hash_table_lookup (task->cfg->metrics_symbols, symbol);
- if (metric_list) {
- cur = metric_list;
-
- while (cur) {
- metric = cur->data;
- s = insert_metric_result (task, metric, symbol, flag, opt, single);
- cur = g_list_next (cur);
- }
- }
- else {
- /* Insert symbol to default metric */
- s = insert_metric_result (task,
+ /* Insert symbol to default metric */
+ s = insert_metric_result (task,
task->cfg->default_metric,
symbol,
flag,
opt,
single);
- }
/* Process cache item */
if (task->cfg->cache) {