diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-17 15:57:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-17 15:57:51 +0100 |
commit | bd4ce0b8093c0b49c841ffdf43e72570dc70ca33 (patch) | |
tree | b583fc60cf9febf36ee74deaee02c6517e163787 /src/libmime/filter.h | |
parent | 8632d14d4b43f2da3cfefdf76b211f4c3449a392 (diff) | |
download | rspamd-bd4ce0b8093c0b49c841ffdf43e72570dc70ca33.tar.gz rspamd-bd4ce0b8093c0b49c841ffdf43e72570dc70ca33.zip |
Add configuration option `unknown_weight` for metrics.
If this option is specified, then all filters add symbols to this metric
with the specified weight even if they are not specified in symbols list
explicitly.
Diffstat (limited to 'src/libmime/filter.h')
-rw-r--r-- | src/libmime/filter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libmime/filter.h b/src/libmime/filter.h index f0a343483..c7ac43951 100644 --- a/src/libmime/filter.h +++ b/src/libmime/filter.h @@ -50,7 +50,9 @@ struct metric { const gchar *name; /**< name of metric */ gchar *func_name; /**< name of consolidation function */ metric_cons_func func; /**< c consolidation function */ - double grow_factor; /**< grow factor for metric */ + gboolean accept_unknown_symbols; /**< if true unknown symbols are registered here */ + gdouble unknown_weight; /**< weight of unknown symbols */ + gdouble grow_factor; /**< grow factor for metric */ GHashTable *symbols; /**< weights of symbols in metric */ GHashTable *descriptions; /**< descriptions of symbols in metric */ struct metric_action actions[METRIC_ACTION_MAX]; /**< all actions of the metric */ |