From 08516775de769867fd90da87c854597c9aa4f0a6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 6 Aug 2022 23:47:35 +0100 Subject: [Minor] Try to fix stats for the virtual symbols --- src/libmime/scan_result.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libmime') diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c index 0b9844b08..33cac5f70 100644 --- a/src/libmime/scan_result.c +++ b/src/libmime/scan_result.c @@ -586,7 +586,8 @@ rspamd_task_insert_result_full (struct rspamd_task *task, /* Process cache item */ if (symbol_result && task->cfg->cache && symbol_result->sym && symbol_result->nshots == 1) { rspamd_symcache_inc_frequency (task->cfg->cache, - symbol_result->sym->cache_item); + symbol_result->sym->cache_item, + symbol_result->sym->name); } } else if (new_symbol) { @@ -610,7 +611,8 @@ rspamd_task_insert_result_full (struct rspamd_task *task, /* Process cache item */ if (symbol_result && task->cfg->cache && symbol_result->sym && symbol_result->nshots == 1) { rspamd_symcache_inc_frequency (task->cfg->cache, - symbol_result->sym->cache_item); + symbol_result->sym->cache_item, + symbol_result->sym->name); } } } -- cgit v1.2.3