aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-01-29 17:46:26 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-01-29 17:46:26 +0300
commit32a96e82d075bdba6e9e567080977a76830cbce2 (patch)
tree028ebfd9118e5c9d33c07593eef7ea4c8b37108e /src/filter.h
parent24e7403974f65b788ad81071d30c092adde97f4e (diff)
downloadrspamd-32a96e82d075bdba6e9e567080977a76830cbce2.tar.gz
rspamd-32a96e82d075bdba6e9e567080977a76830cbce2.zip
* Do another rework of filters/metrics and statfiles processing
* Add 'probability' normalizing to winnow algorithm and calculate not pure weight but normalized probability
Diffstat (limited to 'src/filter.h')
-rw-r--r--src/filter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filter.h b/src/filter.h
index dec13fd72..33c55b162 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -27,6 +27,7 @@ struct metric {
char *func_name;
metric_cons_func func;
double required_score;
+ struct classifier *classifier;
};
struct metric_result {
@@ -37,7 +38,7 @@ struct metric_result {
int process_filters (struct worker_task *task);
void process_statfiles (struct worker_task *task);
-void insert_result (struct worker_task *task, const char *metric_name, const char *symbol, u_char flag);
+void insert_result (struct worker_task *task, const char *metric_name, const char *symbol, double flag);
void make_composites (struct worker_task *task);
double factor_consolidation_func (struct worker_task *task, const char *metric_name);