summaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-09 10:35:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-09 10:35:50 +0100
commit1fbcf0cd6aa99b085a1de2b83dfee00bf1000501 (patch)
treef780460621a1dc4e675e34abb774dc6d8dfd7ff0 /lualib
parentd32f3e49e0179c33632e6f01c31da449c3e18653 (diff)
downloadrspamd-1fbcf0cd6aa99b085a1de2b83dfee00bf1000501.tar.gz
rspamd-1fbcf0cd6aa99b085a1de2b83dfee00bf1000501.zip
[Minor] Dmarc_report: Fix bcc_addrs usage
Diffstat (limited to 'lualib')
-rw-r--r--lualib/rspamadm/dmarc_report.lua10
1 files changed, 9 insertions, 1 deletions
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