aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-23 16:53:28 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-23 16:53:28 +0000
commitc07fb26ef4e2f903522a6cf85617d60acebd9ad2 (patch)
tree577099456d3410c6f3983469609c1f8b87be4225
parentcaa189167ab79c8fb71de4c74ed4b97ceb619550 (diff)
downloadrspamd-c07fb26ef4e2f903522a6cf85617d60acebd9ad2.tar.gz
rspamd-c07fb26ef4e2f903522a6cf85617d60acebd9ad2.zip
Disable statistics in rspamd till reworking is done.
-rw-r--r--src/controller.c2
-rw-r--r--src/libmime/filter.c9
-rw-r--r--src/libmime/message.c2
3 files changed, 8 insertions, 5 deletions
diff --git a/src/controller.c b/src/controller.c
index 87a4a8452..715f71dcc 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -23,8 +23,6 @@
#include "config.h"
-#include "tokenizers.h"
-#include "classifiers.h"
#include "libserver/dynamic_cfg.h"
#include "libutil/rrd.h"
#include "libutil/map.h"
diff --git a/src/libmime/filter.c b/src/libmime/filter.c
index e581a167b..1bdc915f7 100644
--- a/src/libmime/filter.c
+++ b/src/libmime/filter.c
@@ -31,8 +31,6 @@
#include "util.h"
#include "expressions.h"
#include "diff.h"
-#include "classifiers.h"
-#include "tokenizers.h"
#ifdef WITH_LUA
# include "lua/lua_common.h"
@@ -646,6 +644,8 @@ struct classifiers_cbdata {
static void
classifiers_callback (gpointer value, void *arg)
{
+ /* XXX: totally broken now */
+#if 0
struct classifiers_cbdata *cbdata = arg;
struct rspamd_task *task;
struct rspamd_classifier_config *cl = value;
@@ -737,6 +737,7 @@ classifiers_callback (gpointer value, void *arg)
task,
task->cfg->lua_state);
}
+#endif
}
@@ -975,6 +976,9 @@ rspamd_learn_task_spam (struct rspamd_classifier_config *cl,
gboolean is_spam,
GError **err)
{
+ /* XXX: Totally broken now */
+ return FALSE;
+#if 0
GList *cur, *ex;
struct classifier_ctx *cls_ctx;
GTree *tokens = NULL;
@@ -1069,6 +1073,7 @@ rspamd_learn_task_spam (struct rspamd_classifier_config *cl,
task->message_id);
return TRUE;
+#endif
}
/*
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 682e0cf82..94137af15 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -30,7 +30,7 @@
#include "html.h"
#include "images.h"
#include "utlist.h"
-#include "tokenizers.h"
+#include "tokenizers/tokenizers.h"
#include <iconv.h>