From 0ffc4aff8b2a71c0e8bcb342a090602bb87c9f1a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 1 Oct 2016 22:35:14 +0100 Subject: [PATCH] [Minor] Treat no valid elements as permanent spf error --- src/plugins/spf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 0ce88cea2..d45556ff2 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -511,9 +511,9 @@ spf_plugin_callback (struct spf_resolved *record, struct rspamd_task *task, 1, NULL); } - else if (record && record->elts->len == 0 && record->temp_failed) { + else if (record && record->elts->len == 0) { rspamd_task_insert_result (task, - spf_module_ctx->symbol_dnsfail, + spf_module_ctx->symbol_permfail, 1, NULL); } -- 2.39.5