From a380a7ff2763f99508b1314fa708ca0778a498a6 Mon Sep 17 00:00:00 2001
From: Russ Housley <housley@vigilsec.com>
Date: Thu, 10 Dec 2015 22:55:04 +0000
Subject: [PATCH] For manual posting of an I-D by the Secretariat, include the
 RFC Editor on the email message if the I-D is in the RFC Editor Queue. Fixes
 #1751.  - Legacy-Id: 10569

---
 ietf/secr/drafts/email.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ietf/secr/drafts/email.py b/ietf/secr/drafts/email.py
index d3a506401..cd8889efc 100644
--- a/ietf/secr/drafts/email.py
+++ b/ietf/secr/drafts/email.py
@@ -106,6 +106,7 @@ def get_revision_emails(draft):
     custom mail lists for the document or group
     2) the main AD, via id_internal.job_owner
     3) any ad who has marked "discuss" in the ballot associated with this id_internal
+    4) And now, also, the RFC Editor if the draft is in the RFC Editor Queue
     """
     # from legacy
     if not draft.get_state('draft-iesg'):
@@ -122,6 +123,9 @@ def get_revision_emails(draft):
             if pos and pos.pos_id == "discuss":
                 emails.append(ad.role_email("ad").address)
 
+    if draft.get_state('draft-iesg').slug == "rfcqueue":
+        emails.append('rfc-editor@rfc-editor.org')
+
     return ', '.join(emails)
 
 def add_email(emails,person):