summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-06 20:06:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-06 20:06:39 +0100
commitcf2ae3292ac93da8b6e0624b48a62828a51803c9 (patch)
treece5c0ea31d59282ff3420c569c4e1e9cb4464a58 /src
parent7fb816b0353d57541aae2d7717f996254312a1cd (diff)
downloadrspamd-cf2ae3292ac93da8b6e0624b48a62828a51803c9.tar.gz
rspamd-cf2ae3292ac93da8b6e0624b48a62828a51803c9.zip
[Minor] Fix lua error after #3387
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/dmarc.lua3
1 files changed, 1 insertions, 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}, ',')