diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-20 22:26:34 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-20 22:26:34 +0400 |
commit | 7a09c641f8caaefa697013540166f0a7f3857321 (patch) | |
tree | ece6ade382dd4acb53f275a34fe47c590e8ff617 /src/settings.h | |
parent | 2f23fd64a793f818300bb645beb16f1a01528d31 (diff) | |
download | rspamd-7a09c641f8caaefa697013540166f0a7f3857321.tar.gz rspamd-7a09c641f8caaefa697013540166f0a7f3857321.zip |
* Add ability to recursive scan over multipart's parts for functions:
- content_type_is_type
- content_type_is_subtype
- content_type_compare_param
- content_type_has_param
* Add ability to specify any of actions in user's settings, not only reject.
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h index a1d712a87..43b70c2f0 100644 --- a/src/settings.h +++ b/src/settings.h @@ -7,6 +7,7 @@ struct rspamd_settings { GHashTable *metric_scores; /**< hash table of metric require scores for this setting */ GHashTable *reject_scores; /**< hash table of metric reject scores for this setting */ + GHashTable *metric_actions; /**< hash table of metric actions for this setting */ GHashTable *factors; /**< hash table of new factors for this setting */ GHashTable *whitelist; /**< hash table of whitelist for this setting */ gchar *statfile_alias; /**< alias for statfile used */ @@ -17,6 +18,7 @@ struct rspamd_settings { gboolean read_settings (const gchar *path, struct config_file *cfg, GHashTable *table); void init_settings (struct config_file *cfg); gboolean check_metric_settings (struct worker_task *task, struct metric *metric, double *score, double *rscore); +gboolean check_metric_action_settings (struct worker_task *task, struct metric *metric, double score, enum rspamd_metric_action *result); gboolean check_factor_settings (struct worker_task *task, const gchar *symbol, double *factor); gboolean check_want_spam (struct worker_task *task); |