commit 1fbcf0c: [Minor] Dmarc_report: Fix bcc_addrs usage
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Aug 9 09:42:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-08-09 10:35:50 +0100
URL: https://github.com/rspamd/rspamd/commit/1fbcf0cd6aa99b085a1de2b83dfee00bf1000501 (HEAD -> master)
[Minor] Dmarc_report: Fix bcc_addrs usage
---
lualib/rspamadm/dmarc_report.lua | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/lualib/rspamadm/dmarc_report.lua b/lualib/rspamadm/dmarc_report.lua
index e3c59db79..1b0bc7f24 100644
--- a/lualib/rspamadm/dmarc_report.lua
+++ b/lualib/rspamadm/dmarc_report.lua
@@ -551,9 +551,17 @@ local function prepare_report(opts, start_time, rep_key)
{'DEL', rep_key})
end
+ local report_rcpts = lua_util.str_split(rcpt_string, ',')
+
+ if report_settings.bcc_addrs then
+ for _,b in ipairs(report_settings.bcc_addrs) do
+ table.insert(report_rcpts, b)
+ end
+ end
+
return {
message = message,
- rcpts = lua_util.str_split(rcpt_string .. (bcc_string or ''), ','),
+ rcpts = report_rcpts,
reporting_domain = reporting_domain
}
end
More information about the Commits
mailing list