[Dovecot] Fix quarantine bcc, use socket for LUA API

This commit is contained in:
andryyy committed 2020-01-29 10:30:06 +01:00
1 parent 2c77586c0f
commit cf4baa00a6
2 files changed
+23 -4

No files matched your search

@@ -84,7 +84,7 @@ def notify_rcpt(rcpt, msg_count, quarantine_acl):
msg.attach(text_part)
msg.attach(html_part)
msg['To'] = str(rcpt)
bcc = r.get('Q_GLOBAL_RCPT') or ""
bcc = r.get('Q_BCC') or ""
text = msg.as_string()
server.sendmail(msg['From'], [str(rcpt)] + [str(bcc)], text)
server.quit()