diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-03 12:23:18 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-03 12:23:18 +0100 |
commit | cf13c6d210dfeab26634ab29bb2db2575882ebe0 (patch) | |
tree | 415fb55c9580391d5d13b9af80f723c6ef77dd5b /src/libmime | |
parent | dfb304e588d9a34da9cad2cb5855efca40283b93 (diff) | |
download | rspamd-cf13c6d210dfeab26634ab29bb2db2575882ebe0.tar.gz rspamd-cf13c6d210dfeab26634ab29bb2db2575882ebe0.zip |
[Feature] Allow setting scores and actions from lua
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c index b0f93ec4b..3a3203ed9 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -57,14 +57,14 @@ rspamd_create_metric_result (struct rspamd_task *task, const gchar *name) metric_res->metric = metric; metric_res->grow_factor = 0; metric_res->score = 0; - g_hash_table_insert (task->results, (gpointer) metric->name, - metric_res); for (i = 0; i < METRIC_ACTION_MAX; i++) { metric_res->actions_limits[i] = metric->actions[i].score; } metric_res->action = METRIC_ACTION_MAX; + g_hash_table_insert (task->results, (gpointer) metric->name, + metric_res); return metric_res; } |