summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/metadata_exporter.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-25 14:24:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-25 14:24:39 +0100
commit73ce1838a266bfb021ec2c72aacd8562cad15467 (patch)
treedb9478b69b82e632ce3d1428f7518964de43d620 /src/plugins/lua/metadata_exporter.lua
parent3372a1c17c49f397d76825e3f62496f7438991c1 (diff)
downloadrspamd-73ce1838a266bfb021ec2c72aacd8562cad15467.tar.gz
rspamd-73ce1838a266bfb021ec2c72aacd8562cad15467.zip
[Minor] Rework API to remove task dependency
Diffstat (limited to 'src/plugins/lua/metadata_exporter.lua')
-rw-r--r--src/plugins/lua/metadata_exporter.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua
index 5f8652fab..9897f3357 100644
--- a/src/plugins/lua/metadata_exporter.lua
+++ b/src/plugins/lua/metadata_exporter.lua
@@ -299,14 +299,15 @@ local pushers = {
end
end
- lua_smtp.sendmail(task, formatted, {
+ lua_smtp.sendmail({
+ task = task,
host = rule.smtp,
port = rule.smtp_port or settings.smtp_port or 25,
from = rule.mail_from or settings.mail_from,
recipients = rule.mail_to,
helo = rule.helo or settings.helo,
timeout = rule.timeout or settings.timeout,
- }, sendmail_cb)
+ }, formatted, sendmail_cb)
end,
}