From: Reto Kupferschmid Date: Tue, 16 Aug 2022 07:39:02 +0000 (+0200) Subject: [Fix] Skip sending dmarc reports in no-opt mode X-Git-Tag: 3.3~74^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4242%2Fhead;p=rspamd.git [Fix] Skip sending dmarc reports in no-opt mode fixes https://github.com/rspamd/rspamd/issues/4241 --- diff --git a/lualib/rspamadm/dmarc_report.lua b/lualib/rspamadm/dmarc_report.lua index ad727d177..85c905130 100644 --- a/lualib/rspamadm/dmarc_report.lua +++ b/lualib/rspamadm/dmarc_report.lua @@ -725,7 +725,11 @@ local function handler(args) pool:destroy() end - send_reports_by_smtp(opts, all_reports, finish_cb) + if not opts.no_opt then + send_reports_by_smtp(opts, all_reports, finish_cb) + else + logger.messagex('Skip sending mails due to -n / --no-opt option') + end end return {