From 6ea0881a896246d71526694f2acfda5885322d27 Mon Sep 17 00:00:00 2001 From: Russ Housley Date: Sun, 18 Feb 2018 20:40:49 +0000 Subject: [PATCH] Strip the HTML tags around the new values in the mail produced by email_iesg_processing_document. Also, provide the previously missing URL at the end of the message. Fixes 2455. - Legacy-Id: 14655 --- ietf/doc/mails.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ietf/doc/mails.py b/ietf/doc/mails.py index b3cd75f1d..a035cb186 100644 --- a/ietf/doc/mails.py +++ b/ietf/doc/mails.py @@ -79,11 +79,15 @@ def email_pulled_from_rfc_queue(request, doc, comment, prev_state, next_state): def email_iesg_processing_document(request, doc, changes): addrs = gather_address_lists('doc_iesg_processing_started',doc=doc) + tagless_changes = [] + for c in changes: + tagless_changes.append(strip_tags(c)) send_mail(request, addrs.to, None, 'IESG processing details changed for %s' % doc.name, 'doc/mail/email_iesg_processing.txt', dict(doc=doc, - changes=changes), + changes=tagless_changes, + url=settings.IDTRACKER_BASE_URL + doc.get_absolute_url()), cc=addrs.cc) def html_to_text(html):