@@ -45,6 +45,10 @@ def make_recipients(apps):
4545 desc = "The chairs of groups of the subject documents of a conflict-review or status-change" ,
4646 template = None )
4747
48+ rc (slug = 'doc_affecteddoc_notify' ,
49+ desc = "The notify field of the subject documents of a conflict-review or status-change" ,
50+ template = None )
51+
4852 rc (slug = 'doc_shepherd' ,
4953 desc = "The document's shepherd" ,
5054 template = '{% if doc.shepherd %}{{doc.shepherd.address}}{% endif %}' )
@@ -57,14 +61,38 @@ def make_recipients(apps):
5761 desc = "The list address of the document's group" ,
5862 template = None )
5963
64+ rc (slug = 'doc_stream_owner' ,
65+ desc = "The owner of the document's stream" ,
66+ template = '{% if doc.stream_id == "ise" %}<rfc-ise@rfc-editor.org>{% endif %}{% if doc.stream_id == "irtf" %}<irtf-chair@irtf.org>{% endif %}{% if doc.stream_id == "ietf" %}<iesg@ietf.org>{% endif %}' )
67+
6068 rc (slug = 'conflict_review_stream_owner' ,
6169 desc = "The stream owner of a document being reviewed for IETF stream conflicts" ,
62- template = '{% ifequal doc.type_id "conflrev" %}{% ifequal doc.stream_id "ise" %}<rfc-ise@rfc-editor.org>{% endifequal %}{% ifequal doc.stream_id "irtf" %}<irtf-chair@irtf.org>{% endifequal %}{% endifequal %}' )
70+ template = None )
71+
72+ rc (slug = 'conflict_review_steering_group' ,
73+ desc = "The steering group (e.g. IRSG) of a document being reviewed for IETF stream conflicts" ,
74+ template = None )
6375
6476 rc (slug = 'iana_approve' ,
6577 desc = "IANA's draft approval address" ,
6678 template = 'IANA <drafts-approval@icann.org>' )
6779
80+ rc (slug = 'iana' ,
81+ desc = "IANA" ,
82+ template = '<iana@iana.org>' )
83+
84+ rc (slug = 'group_mail_list' ,
85+ desc = "The group's mailing list" ,
86+ template = '{{ group.list_email }}' )
87+
88+ rc (slug = 'group_steering_group' ,
89+ desc = "The group's steering group (IESG or IRSG)" ,
90+ template = None )
91+
92+ rc (slug = 'group_chairs' ,
93+ desc = "The group's chairs" ,
94+ template = "{{group.acronym}}-chairs@ietf.org" )
95+
6896def make_mailtokens (apps ):
6997
7098 Recipient = apps .get_model ('mailtoken' ,'Recipient' )
@@ -85,6 +113,7 @@ def mt_factory(slug,desc,recipient_slugs):
85113 'doc_shepherd' ,
86114 'doc_affecteddoc_authors' ,
87115 'doc_affecteddoc_group_chairs' ,
116+ 'doc_affecteddoc_notify' ,
88117 'conflict_review_stream_owner' ,
89118 ])
90119
@@ -98,6 +127,7 @@ def mt_factory(slug,desc,recipient_slugs):
98127 'doc_shepherd' ,
99128 'doc_affecteddoc_authors' ,
100129 'doc_affecteddoc_group_chairs' ,
130+ 'doc_affecteddoc_notify' ,
101131 'conflict_review_stream_owner' ,
102132 ])
103133
@@ -121,6 +151,49 @@ def mt_factory(slug,desc,recipient_slugs):
121151 desc = 'Recipients for IANA message when an IETF stream document ballot is approved' ,
122152 recipient_slugs = ['iana_approve' ])
123153
154+ mt_factory (slug = 'ballot_approved_conflrev' ,
155+ desc = 'Recipients when a conflict review ballot is approved' ,
156+ recipient_slugs = ['conflict_review_stream_owner' ,
157+ 'conflict_review_steering_group' ,
158+ 'doc_affecteddoc_authors' ,
159+ 'doc_affecteddoc_group_chairs' ,
160+ 'doc_affecteddoc_notify' ,
161+ 'doc_notify' ,
162+ ])
163+
164+ mt_factory (slug = 'ballot_approved_conflrev_cc' ,
165+ desc = 'Copied when a conflict review ballot is approved' ,
166+ recipient_slugs = ['iesg' ,
167+ 'ietf_announce' ,
168+ 'iana' ,
169+ ])
170+
171+ mt_factory (slug = 'ballot_approved_charter' ,
172+ desc = 'Recipients when a charter is approved' ,
173+ recipient_slugs = ['ietf_announce' ,])
174+
175+ mt_factory (slug = 'ballot_approved_charter_cc' ,
176+ desc = 'Copied when a charter is approved' ,
177+ recipient_slugs = ['group_mail_list' ,
178+ 'group_steering_group' ,
179+ 'group_chairs' ,
180+ 'doc_notify' ,
181+ ])
182+
183+ mt_factory (slug = 'ballot_approved_status_change' ,
184+ desc = 'Recipients when a status change is approved' ,
185+ recipient_slugs = ['ietf_announce' ,])
186+
187+ mt_factory (slug = 'ballot_approved_status_change_cc' ,
188+ desc = 'Copied when a status change is approved' ,
189+ recipient_slugs = ['iesg' ,
190+ 'rfc_editor' ,
191+ 'doc_notify' ,
192+ 'doc_affectddoc_authors' ,
193+ 'doc_affecteddoc_group_chairs' ,
194+ 'doc_affecteddoc_notify' ,
195+ ])
196+
124197
125198def forward (apps , schema_editor ):
126199
0 commit comments