commit 827f9b8: [Fix] metadata_exporter default formatter
Carsten Rosenberg
c.rosenberg at heinlein-support.de
Thu Mar 5 10:14:06 UTC 2020
Author: Carsten Rosenberg
Date: 2020-03-04 21:04:10 +0100
URL: https://github.com/rspamd/rspamd/commit/827f9b87b9076b0feaaaeef5cb1584ee87d43ae4 (refs/pull/3288/head)
[Fix] metadata_exporter default formatter
---
src/plugins/lua/metadata_exporter.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua
index 172b55811..27b0b10f6 100644
--- a/src/plugins/lua/metadata_exporter.lua
+++ b/src/plugins/lua/metadata_exporter.lua
@@ -144,7 +144,7 @@ end
local formatters = {
default = function(task)
- return task:get_content()
+ return task:get_content(), {}
end,
email_alert = function(task, rule, extra)
local meta = get_general_metadata(task, true)
@@ -306,7 +306,7 @@ local pushers = {
host = rule.smtp,
port = rule.smtp_port or settings.smtp_port or 25,
from = rule.mail_from or settings.mail_from,
- recipients = extra.mail_targets,
+ recipients = extra.mail_targets or rule.mail_to or settings.mail_to,
helo = rule.helo or settings.helo,
timeout = rule.timeout or settings.timeout,
}, formatted, sendmail_cb)
More information about the Commits
mailing list