Added the message-id to log lines for sent messages

- Legacy-Id: 15582
This commit is contained in:
Henrik Levkowetz 2018-10-15 18:46:45 +00:00
parent 2935940f14
commit 0e52b30e5b

View file

@ -128,7 +128,7 @@ def send_smtp(msg, bcc=None):
server.quit()
except smtplib.SMTPServerDisconnected:
pass
log("sent email from '%s' to %s subject '%s'" % (frm, to, msg.get('Subject', '[no subject]')))
log("sent email from '%s' to %s id %s subject '%s'" % (frm, to, msg.get('Message-ID', ''), msg.get('Subject', '[no subject]')))
def copy_email(msg, to, toUser=False, originalBcc=None):
'''