diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-02 20:23:16 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-02 20:23:16 +0400 |
commit | ce482fbf8e2c1b9bf0cdba0ab61bc26985ee8977 (patch) | |
tree | aa9db8b8c40ce43d504750f03f781652c16ea727 /src/settings.h | |
parent | f3ad9c6f1e91c9912dbe730fdec350b5fc908672 (diff) | |
download | rspamd-ce482fbf8e2c1b9bf0cdba0ab61bc26985ee8977.tar.gz rspamd-ce482fbf8e2c1b9bf0cdba0ab61bc26985ee8977.zip |
* Add reject score setting for hard rejecting of mail (by Anton Nekhoroshin)
* Add rspamc protocol 1.1 (3 marks instead of 2)
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/settings.h b/src/settings.h index 696bd9d76..58e877570 100644 --- a/src/settings.h +++ b/src/settings.h @@ -5,7 +5,8 @@ #include "main.h" struct rspamd_settings { - GHashTable *metric_scores; /**< hash table of metric scores for this setting */ + 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 *factors; /**< hash table of new factors for this setting */ char *statfile_alias; /**< alias for statfile used */ gboolean want_spam; /**< if true disable rspamd checks */ @@ -14,7 +15,7 @@ struct rspamd_settings { gboolean read_settings (const char *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); +gboolean check_metric_settings (struct worker_task *task, struct metric *metric, double *score, double *rscore); gboolean check_factor_settings (struct worker_task *task, const char *symbol, double *factor); gboolean check_want_spam (struct worker_task *task); |