aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/filter.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-15 15:22:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-15 16:24:15 +0100
commitbedf3ff40869ab417aae52e36a2c4dc89772ae57 (patch)
tree03659ae153c38bf6f591c7999faa7f1bf1f34269 /src/libmime/filter.h
parent94f36ba73ea4d91273245cff791493e5b17f6e2a (diff)
downloadrspamd-bedf3ff40869ab417aae52e36a2c4dc89772ae57.tar.gz
rspamd-bedf3ff40869ab417aae52e36a2c4dc89772ae57.zip
[Minor] Store more information about symbols added
Diffstat (limited to 'src/libmime/filter.h')
-rw-r--r--src/libmime/filter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libmime/filter.h b/src/libmime/filter.h
index fdd0f8dc9..78d67e77c 100644
--- a/src/libmime/filter.h
+++ b/src/libmime/filter.h
@@ -77,6 +77,10 @@ struct rspamd_metric_result {
double score; /**< total score */
double grow_factor; /**< current grow factor */
struct rspamd_passthrough_result *passthrough_result;
+ guint npositive;
+ guint nnegative;
+ double positive_score;
+ double negative_score;
khash_t(rspamd_symbols_hash) *symbols; /**< symbols of metric */
khash_t(rspamd_symbols_group_hash) *sym_groups; /**< groups of symbols */
gdouble actions_limits[METRIC_ACTION_MAX]; /**< set of actions for this metric */