aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-08 15:57:15 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-08 15:57:15 +0000
commit6ee6b7a2642f6ef7d8805ce6a1299196fbe683e3 (patch)
treea359e92a647e3049b8629a3267c5f56b9b2597a5 /src/libserver/cfg_file.h
parent4dbec3c0d4502478a15e6811bf9243d66f516463 (diff)
downloadrspamd-6ee6b7a2642f6ef7d8805ce6a1299196fbe683e3.tar.gz
rspamd-6ee6b7a2642f6ef7d8805ce6a1299196fbe683e3.zip
Impelement the concept when classifier values are integers
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r--src/libserver/cfg_file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index 1dfd3419e..b03facd3a 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -127,6 +127,9 @@ struct rspamd_tokenizer_config {
const gchar *name; /**< name of tokenizer */
};
+
+/* Classifier has all integer values (e.g. bayes) */
+#define RSPAMD_FLAG_CLASSIFIER_INTEGER (1 << 0)
/**
* Classifier config definition
*/
@@ -143,6 +146,7 @@ struct rspamd_classifier_config {
gchar *name; /**< unique name of classifier */
guint32 min_tokens; /**< minimal number of tokens to process classifier */
guint32 max_tokens; /**< maximum number of tokens */
+ guint flags;
};
struct rspamd_worker_bind_conf {