diff options
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/scan_result.c | 5 | ||||
-rw-r--r-- | src/libmime/scan_result.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c index 7b92510ca..1a2d96d83 100644 --- a/src/libmime/scan_result.c +++ b/src/libmime/scan_result.c @@ -158,6 +158,8 @@ rspamd_add_passthrough_result (struct rspamd_task *task, struct rspamd_action *a flags & RSPAMD_PASSTHROUGH_LEAST ? "*least " : "", message, module, priority); } + + scan_result->nresults ++; } static inline gdouble @@ -474,6 +476,7 @@ insert_metric_result (struct rspamd_task *task, symbol, s->score, final_score); + metric_res->nresults ++; return s; } @@ -730,6 +733,8 @@ rspamd_task_add_result_option (struct rspamd_task *task, ret = TRUE; } + task->result->nresults ++; + return ret; } diff --git a/src/libmime/scan_result.h b/src/libmime/scan_result.h index d82699a91..c2b1088da 100644 --- a/src/libmime/scan_result.h +++ b/src/libmime/scan_result.h @@ -89,6 +89,8 @@ struct rspamd_scan_result { guint nactions; guint npositive; guint nnegative; + guint nresults; /**< all results: positive, negative, passthrough etc */ + guint nresults_postfilters; /**< how many results are there before postfilters stage */ struct rspamd_scan_result *prev, *next; /**< double linked list of results */ }; |