diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-23 16:51:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-23 16:51:05 +0100 |
commit | a59114820efe8abfc606da71b8e94c1759ceedab (patch) | |
tree | 997feddea031eb8b51c653c8da2346cb307c51a7 /src/libmime | |
parent | 011e790385be186d1bfe9f48bda906474e089f7b (diff) | |
download | rspamd-a59114820efe8abfc606da71b8e94c1759ceedab.tar.gz rspamd-a59114820efe8abfc606da71b8e94c1759ceedab.zip |
Rework pre-filters results processing.
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/filter.c | 1 | ||||
-rw-r--r-- | src/libmime/filter.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c index 6ae51f769..540502a47 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -93,6 +93,7 @@ rspamd_create_metric_result (struct rspamd_task *task, const gchar *name) metric_res->score = 0; g_hash_table_insert (task->results, (gpointer) metric->name, metric_res); + metric_res->action = METRIC_ACTION_MAX; return metric_res; } diff --git a/src/libmime/filter.h b/src/libmime/filter.h index 69c20bdd1..3f01f2314 100644 --- a/src/libmime/filter.h +++ b/src/libmime/filter.h @@ -65,6 +65,7 @@ struct metric { struct metric_result { struct metric *metric; /**< pointer to metric structure */ double score; /**< total score */ + enum rspamd_metric_action action; /**< the current action */ GHashTable *symbols; /**< symbols of metric */ gboolean checked; /**< whether metric result is consolidated */ double grow_factor; /**< current grow factor */ |