[Dovecot] Fix invalid rcpt when no bcc is set, fixes #3576
parent
8b02acbef5
commit
bdbb0c34be
|
@ -86,6 +86,9 @@ def notify_rcpt(rcpt, msg_count, quarantine_acl):
|
||||||
msg['To'] = str(rcpt)
|
msg['To'] = str(rcpt)
|
||||||
bcc = r.get('Q_BCC') or ""
|
bcc = r.get('Q_BCC') or ""
|
||||||
text = msg.as_string()
|
text = msg.as_string()
|
||||||
|
if bcc == '':
|
||||||
|
server.sendmail(msg['From'], str(rcpt), text)
|
||||||
|
else:
|
||||||
server.sendmail(msg['From'], [str(rcpt)] + [str(bcc)], text)
|
server.sendmail(msg['From'], [str(rcpt)] + [str(bcc)], text)
|
||||||
server.quit()
|
server.quit()
|
||||||
for res in meta_query:
|
for res in meta_query:
|
||||||
|
|
Loading…
Reference in New Issue