diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-09 10:35:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-09 10:35:50 +0100 |
commit | 1fbcf0cd6aa99b085a1de2b83dfee00bf1000501 (patch) | |
tree | f780460621a1dc4e675e34abb774dc6d8dfd7ff0 /lualib | |
parent | d32f3e49e0179c33632e6f01c31da449c3e18653 (diff) | |
download | rspamd-1fbcf0cd6aa99b085a1de2b83dfee00bf1000501.tar.gz rspamd-1fbcf0cd6aa99b085a1de2b83dfee00bf1000501.zip |
[Minor] Dmarc_report: Fix bcc_addrs usage
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/rspamadm/dmarc_report.lua | 10 |
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 |