]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another try to fix action output
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Mar 2018 18:10:43 +0000 (18:10 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Mar 2018 18:10:43 +0000 (18:10 +0000)
src/libmime/filter.c

index 08a589189e823d866f7e9f08b9ec2002d58bffaf..5fd202f2a467a742a7f200e88c65d55ad0ec2df7 100644 (file)
@@ -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;