aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/filter.c1
-rw-r--r--src/libmime/filter.h1
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 */