commit cf2ae32: [Minor] Fix lua error after #3387
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Jun 6 19:14:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-06-06 20:06:39 +0100
URL: https://github.com/rspamd/rspamd/commit/cf2ae3292ac93da8b6e0624b48a62828a51803c9 (HEAD -> master)
[Minor] Fix lua error after #3387
---
src/plugins/lua/dmarc.lua | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index 635e6c1d0..038a7de5d 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -218,9 +218,8 @@ local function dmarc_report(task, spf_ok, dkim_ok, disposition,
local dkim_fail = table.concat(dres.fail or E, '|')
local dkim_temperror = table.concat(dres.temperror or E, '|')
local dkim_permerror = table.concat(dres.permerror or E, '|')
- local disposition_to_return = if disposition == "softfail" then "none" else disposition
+ local disposition_to_return = (disposition == "softfail") and "none" or disposition
local res = table.concat({
- ip:to_string(), spf_ok, dkim_ok,
disposition_to_return, (sampled_out and 'sampled_out' or ''), hfromdom,
dkim_pass, dkim_fail, dkim_temperror, dkim_permerror, spfdom, spf_result}, ',')
More information about the Commits
mailing list