aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-03 12:13:10 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-03 12:13:10 +0000
commit5936aed13e97ac84e44e38a00dcfde16ec9fd173 (patch)
tree29c319fc298117e56aeaf97ed1780dc4cadbe5e5 /src/libmime
parenta752628025143687ee60f6f1cf94ad483023d1db (diff)
downloadrspamd-5936aed13e97ac84e44e38a00dcfde16ec9fd173.tar.gz
rspamd-5936aed13e97ac84e44e38a00dcfde16ec9fd173.zip
Add ability to ignore certain symbols in metric when validating cache
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c
index ab8833a8a..48115375f 100644
--- a/src/libmime/filter.c
+++ b/src/libmime/filter.c
@@ -140,7 +140,7 @@ insert_metric_result (struct rspamd_task *task,
/* Add metric score */
if ((s = g_hash_table_lookup (metric_res->symbols, symbol)) != NULL) {
- if (sdef && sdef->one_shot) {
+ if (sdef && (sdef->flags & RSPAMD_SYMBOL_FLAG_ONESHOT)) {
/*
* For one shot symbols we do not need to add them again, so
* we just force single behaviour here