diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-08 15:09:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-08 15:09:08 +0000 |
commit | cbf7157e47e1e94d0653bc291767c2991e96158f (patch) | |
tree | a46132847f6a3a9e02ea37d532dca191edefed24 /src/libmime | |
parent | a0223f6333bb55428c6369f857d354c956a58a01 (diff) | |
download | rspamd-cbf7157e47e1e94d0653bc291767c2991e96158f.tar.gz rspamd-cbf7157e47e1e94d0653bc291767c2991e96158f.zip |
[Minor] Allow to skip composites second pass
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 */ }; |