Skip to content

Commit 0e52b30

Browse files
committed
Added the message-id to log lines for sent messages
- Legacy-Id: 15582
1 parent 2935940 commit 0e52b30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/utils/mail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def send_smtp(msg, bcc=None):
128128
server.quit()
129129
except smtplib.SMTPServerDisconnected:
130130
pass
131-
log("sent email from '%s' to %s subject '%s'" % (frm, to, msg.get('Subject', '[no subject]')))
131+
log("sent email from '%s' to %s id %s subject '%s'" % (frm, to, msg.get('Message-ID', ''), msg.get('Subject', '[no subject]')))
132132

133133
def copy_email(msg, to, toUser=False, originalBcc=None):
134134
'''

0 commit comments

Comments
 (0)