diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-06 14:51:16 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-06 14:51:16 +0000 |
commit | 6921abd84341a5b2719885165cdf42d6c8ad67c6 (patch) | |
tree | a26b1be7bb5ad4fca069731288b3a62ca2fcbdef /src/libmime | |
parent | fe927a38449754f0a5fe090c52b5552b75dd04fd (diff) | |
download | rspamd-6921abd84341a5b2719885165cdf42d6c8ad67c6.tar.gz rspamd-6921abd84341a5b2719885165cdf42d6c8ad67c6.zip |
Store real required score inside metric result
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/filter.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libmime/filter.h b/src/libmime/filter.h index aec06d670..51a1d4304 100644 --- a/src/libmime/filter.h +++ b/src/libmime/filter.h @@ -50,11 +50,12 @@ struct metric { struct metric_result { struct metric *metric; /**< pointer to metric structure */ double score; /**< total score */ - enum rspamd_metric_action action; /**< the current action */ + double required_score; /**< real required score */ + double grow_factor; /**< current grow factor */ GHashTable *symbols; /**< symbols of metric */ GHashTable *sym_groups; /**< groups of symbols */ gboolean checked; /**< whether metric result is consolidated */ - double grow_factor; /**< current grow factor */ + enum rspamd_metric_action action; /**< the current action */ }; /** |