aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-08-16 14:51:47 +0100
committerGitHub <noreply@github.com>2022-08-16 14:51:47 +0100
commita750d224dce6226b16391f869e8cbc6718011f7d (patch)
tree0ee2f1f7438b60718f3b5698cc100c2aabf25747
parentbde1d6037b438766326b7dbe40658f7f462c60a9 (diff)
parent0e131d1cbe1b60655e4b00925585a6573972fc20 (diff)
downloadrspamd-a750d224dce6226b16391f869e8cbc6718011f7d.tar.gz
rspamd-a750d224dce6226b16391f869e8cbc6718011f7d.zip
Merge pull request #4242 from rekup/fix/dmarc-report-noopt
[Fix] Skip sending dmarc reports in no-opt mode
-rw-r--r--lualib/rspamadm/dmarc_report.lua6
1 files changed, 5 insertions, 1 deletions
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 {