From 0609488580672b56ef856a9ec06caff6fa8976e0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 14 Apr 2020 16:07:37 +0100 Subject: [Minor] Allow 'default' to be the default result --- src/libmime/scan_result.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c index d299aa2ee..fb8024928 100644 --- a/src/libmime/scan_result.c +++ b/src/libmime/scan_result.c @@ -897,6 +897,9 @@ rspamd_find_metric_result (struct rspamd_task *task, if (name == NULL) { return task->result; } + else if (strcmp (name, "default") == 0) { + return task->result; + } DL_FOREACH (task->result, res) { if (res->name && strcmp (res->name, name) == 0) { -- cgit v1.2.3