aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/plugins/dmarc.lua
diff options
context:
space:
mode:
authordzjaivnt <91220882+dzjaivnt@users.noreply.github.com>2023-10-12 12:28:48 +0200
committerGitHub <noreply@github.com>2023-10-12 12:28:48 +0200
commit4127a61ee72030c27c80c082283b73b85b3ac5c9 (patch)
treeb0ca8f4eed43b0977c0f1c3cdf8143324fef198a /lualib/plugins/dmarc.lua
parenta6bd9c893a74310548e51fed691b62db809c3564 (diff)
downloadrspamd-4127a61ee72030c27c80c082283b73b85b3ac5c9.tar.gz
rspamd-4127a61ee72030c27c80c082283b73b85b3ac5c9.zip
Update dmarc.lua
When from.name is Nil its still show up, with != "" not Then you get From: via user <user@domain.tld> Instead of From: otheruser via user <user@domain.tld> Debug: 2023-10-12 12:08:15 #725504(normal) <0b948d>; dmarc; dmarc.lua:191: munging debug: {[user] = user, [domain] = domain.tld, [flags] = {[valid] = true}, [name] = , [raw] = user@domain.tld, [addr] = user@domain.tld}
Diffstat (limited to 'lualib/plugins/dmarc.lua')
-rw-r--r--lualib/plugins/dmarc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/plugins/dmarc.lua b/lualib/plugins/dmarc.lua
index f80eaad5b..ff33626bf 100644
--- a/lualib/plugins/dmarc.lua
+++ b/lualib/plugins/dmarc.lua
@@ -188,7 +188,7 @@ exports.gen_munging_callback = function(munging_opts, settings)
local via_addr = rcpt_found.addr
local via_name
- if from.name then
+ if from.name != "" then
via_name = string.format('%s via %s', from.name, via_user)
else
via_name = string.format('%s via %s', from.user or 'unknown', via_user)