From: Vsevolod Stakhov Date: Thu, 15 Mar 2018 18:10:43 +0000 (+0000) Subject: [Minor] Another try to fix action output X-Git-Tag: 1.7.1~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d8158e23ad11a5a002753aed3382b5e1dbc17bf;p=thirdparty%2Frspamd.git [Minor] Another try to fix action output --- diff --git a/src/libmime/filter.c b/src/libmime/filter.c index 08a589189e..5fd202f2a4 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -378,6 +378,10 @@ rspamd_check_action_metric (struct rspamd_task *task, struct rspamd_metric_resul max_score = sc; } } + + if (set_action && selected_action == NULL) { + selected_action = &task->cfg->actions[METRIC_ACTION_NOACTION]; + } } else { sc = NAN;