commit fb47bb3: [Minor] Fix bcc_addrs usage

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Apr 20 09:14:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-04-20 10:06:43 +0100
URL: https://github.com/rspamd/rspamd/commit/fb47bb327b85364b070435d9df008b8da17a4c7e (HEAD -> master)

[Minor] Fix bcc_addrs usage
Issue: #3724

---
 src/plugins/lua/dmarc.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index 3936f840d..f216738f6 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -948,10 +948,10 @@ if opts['reporting'] == true then
                  xmlf('footer')})), 73)
         local addr_string = table.concat(list_rcpt, ', ')
 
-        bcc_addrs = lua_util.keys(bcc_addrs)
+        local bcc_addrs_keys = lua_util.keys(bcc_addrs)
         local bcc_string
-        if #bcc_addrs > 0 then
-          bcc_string = table.concat(bcc_addrs, ', ')
+        if #bcc_addrs_keys > 0 then
+          bcc_string = table.concat(bcc_addrs_keys, ', ')
         end
 
         local rhead = lua_util.jinja_template(report_template,


More information about the Commits mailing list