aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-12-08 13:30:55 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-12-08 13:30:55 +0300
commitc9df6177c0b5f8fb5bd2c6c4947c52e184b0b556 (patch)
tree7a352eccab4173ba0a23def11b5bf17d8ed46f34 /src/main.h
parent1162170387a535c21a63777c5d73ecbf706d0e02 (diff)
downloadrspamd-c9df6177c0b5f8fb5bd2c6c4947c52e184b0b556.tar.gz
rspamd-c9df6177c0b5f8fb5bd2c6c4947c52e184b0b556.zip
* Implement learning using classifiers and tokenizers API
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 7f2a60c4c..abe163b3c 100644
--- a/src/main.h
+++ b/src/main.h
@@ -83,6 +83,7 @@ struct rspamd_worker {
struct pidfh;
struct config_file;
struct tokenizer;
+struct classifier;
/* Server statistics */
struct rspamd_stat {
@@ -138,8 +139,10 @@ struct controller_session {
char *learn_rcpt;
char *learn_from;
struct tokenizer *learn_tokenizer;
+ struct classifier *learn_classifier;
char *learn_filename;
f_str_buf_t *learn_buf;
+ int in_class;
};
/* Worker task structure */