aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-01 22:35:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-01 22:35:14 +0100
commit0ffc4aff8b2a71c0e8bcb342a090602bb87c9f1a (patch)
treec250df53daf7dce72929a6d83b6d766a79317b1c
parent43807d0bf55c9ddce1da2267f0b832098c510b61 (diff)
downloadrspamd-0ffc4aff8b2a71c0e8bcb342a090602bb87c9f1a.tar.gz
rspamd-0ffc4aff8b2a71c0e8bcb342a090602bb87c9f1a.zip
[Minor] Treat no valid elements as permanent spf error
-rw-r--r--src/plugins/spf.c4
1 files 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);
}