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

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

View File

@@ -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()