Add documet's notification list to destination email addresses when the document leaves IETF LC
- Legacy-Id: 5529
This commit is contained in:
parent
41fb290932
commit
f81f08cc4a
|
@ -510,8 +510,11 @@ def email_last_call_expired(doc):
|
|||
def email_last_call_expiredREDESIGN(doc):
|
||||
text = "IETF Last Call has ended, and the state has been changed to\n%s." % doc.get_state("draft-iesg").name
|
||||
|
||||
to = [x.strip() for x in doc.notify.replace(';', ',').split(',')]
|
||||
to.insert(0, "iesg@ietf.org")
|
||||
|
||||
send_mail(None,
|
||||
"iesg@ietf.org",
|
||||
to,
|
||||
"DraftTracker Mail System <iesg-secretary@ietf.org>",
|
||||
"Last Call Expired: %s" % doc.file_tag(),
|
||||
"idrfc/change_notice.txt",
|
||||
|
|
|
@ -65,8 +65,8 @@ def send_smtp(msg, bcc=None):
|
|||
log("SMTP server: %s" % repr(server))
|
||||
#if settings.DEBUG:
|
||||
# server.set_debuglevel(1)
|
||||
code, msg = server.connect(settings.EMAIL_HOST, settings.EMAIL_PORT)
|
||||
log("SMTP connect: code: %s; msg: %s" % (code, msg))
|
||||
conn_code, conn_msg = server.connect(settings.EMAIL_HOST, settings.EMAIL_PORT)
|
||||
log("SMTP connect: code: %s; msg: %s" % (conn_code, conn_msg))
|
||||
if settings.EMAIL_HOST_USER and settings.EMAIL_HOST_PASSWORD:
|
||||
server.ehlo()
|
||||
if 'starttls' not in server.esmtp_features:
|
||||
|
|
Loading…
Reference in a new issue