aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-07-22 15:41:54 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-07-22 15:41:54 +0100
commitf6777d7faea262b8ce3b537f0ca9fa233dd4d5dd (patch)
treecbff0d057d1e6bf4ab96ac38a19d9cbdefdda17a /src/libmime
parent3fbe20e679c56105d34dca2f8a0bf3f376728ce1 (diff)
downloadrspamd-f6777d7faea262b8ce3b537f0ca9fa233dd4d5dd.tar.gz
rspamd-f6777d7faea262b8ce3b537f0ca9fa233dd4d5dd.zip
Remove hard dependency on settings.
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/filter.c3
-rw-r--r--src/libmime/filter.h2
-rw-r--r--src/libmime/smtp_utils.c1
3 files changed, 0 insertions, 6 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c
index 9932b814d..5c3594665 100644
--- a/src/libmime/filter.c
+++ b/src/libmime/filter.c
@@ -30,7 +30,6 @@
#include "cfg_file.h"
#include "util.h"
#include "expressions.h"
-#include "settings.h"
#include "binlog.h"
#include "diff.h"
#include "classifiers/classifiers.h"
@@ -80,8 +79,6 @@ insert_metric_result (struct rspamd_task *task, struct metric *metric, const gch
metric_res->metric = metric;
metric_res->grow_factor = 0;
metric_res->score = 0;
- metric_res->domain_settings = NULL;
- metric_res->user_settings = NULL;
apply_metric_settings (task, metric, metric_res);
g_hash_table_insert (task->results, (gpointer) metric->name, metric_res);
}
diff --git a/src/libmime/filter.h b/src/libmime/filter.h
index 7c3f3e51e..2891ebd00 100644
--- a/src/libmime/filter.h
+++ b/src/libmime/filter.h
@@ -65,8 +65,6 @@ struct metric_result {
GHashTable *symbols; /**< symbols of metric */
gboolean checked; /**< whether metric result is consolidated */
double grow_factor; /**< current grow factor */
- struct rspamd_settings *user_settings; /**< settings for metric */
- struct rspamd_settings *domain_settings; /**< settings for metric */
};
/**
diff --git a/src/libmime/smtp_utils.c b/src/libmime/smtp_utils.c
index 5d8f94f64..28d4b6cf3 100644
--- a/src/libmime/smtp_utils.c
+++ b/src/libmime/smtp_utils.c
@@ -24,7 +24,6 @@
#include "config.h"
#include "main.h"
#include "filter.h"
-#include "settings.h"
#include "smtp.h"
#include "smtp_proto.h"