diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-07-22 18:19:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-07-22 18:19:53 +0100 |
commit | 7962087e808fb824aa3af6d41d02abc92916ba1e (patch) | |
tree | c84e6a5d4c5cd78a7a2cc3c7adbc7af5d0541682 /src | |
parent | eddc5d210d84fd5b2970f810f557559d598fcf16 (diff) | |
download | rspamd-7962087e808fb824aa3af6d41d02abc92916ba1e.tar.gz rspamd-7962087e808fb824aa3af6d41d02abc92916ba1e.zip |
Disable old settings API.
Diffstat (limited to 'src')
-rw-r--r-- | src/libmime/filter.c | 1 | ||||
-rw-r--r-- | src/libmime/smtp_utils.c | 5 | ||||
-rw-r--r-- | src/libserver/cfg_utils.c | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c index 21212e686..2068c79e3 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -90,7 +90,6 @@ insert_metric_result (struct rspamd_task *task, struct metric *metric, const gch w = (*weight) * flag; } - /* Add metric score */ if ((s = g_hash_table_lookup (metric_res->symbols, symbol)) != NULL) { if (s->options && opts && opts != s->options) { diff --git a/src/libmime/smtp_utils.c b/src/libmime/smtp_utils.c index 28d4b6cf3..8ed169fa7 100644 --- a/src/libmime/smtp_utils.c +++ b/src/libmime/smtp_utils.c @@ -144,6 +144,10 @@ smtp_metric_callback (gpointer key, gpointer value, gpointer ud) task = cd->session->task; + /* XXX rewrite */ + ms = metric_res->metric->actions[METRIC_ACTION_REJECT].score; + rs = metric_res->metric->actions[METRIC_ACTION_REJECT].score; +#if 0 if (!check_metric_settings (metric_res, &ms, &rs)) { ms = metric_res->metric->actions[METRIC_ACTION_REJECT].score; rs = metric_res->metric->actions[METRIC_ACTION_REJECT].score; @@ -151,6 +155,7 @@ smtp_metric_callback (gpointer key, gpointer value, gpointer ud) if (! check_metric_action_settings (task, metric_res, metric_res->score, &action)) { action = check_metric_action (metric_res->score, ms, metric_res->metric); } +#endif if (metric_res->score >= ms) { is_spam = 1; } diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 71821244a..e1652ac55 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -296,9 +296,6 @@ rspamd_config_defaults (struct rspamd_config *cfg) cfg->log_level = G_LOG_LEVEL_WARNING; cfg->log_extended = TRUE; - - init_settings (cfg); - } void |