summaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-08-06 23:47:35 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-08-06 23:47:35 +0100
commit08516775de769867fd90da87c854597c9aa4f0a6 (patch)
treeda2cac74e12e6d0ba31870bb52e94ba1b2552953 /src/libmime
parent7d89519edd35bdc79fd295ef873ca607fe7700d9 (diff)
downloadrspamd-08516775de769867fd90da87c854597c9aa4f0a6.tar.gz
rspamd-08516775de769867fd90da87c854597c9aa4f0a6.zip
[Minor] Try to fix stats for the virtual symbols
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/scan_result.c6
1 files changed, 4 insertions, 2 deletions
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);
}
}
}