Skip to content

Commit 093ff52

Browse files
committed
Small things before second run at reworking IPR addressing
- Legacy-Id: 10028
1 parent 23a2ada commit 093ff52

3 files changed

Lines changed: 44 additions & 4 deletions

File tree

ietf/ipr/views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from ietf.secr.utils.document import get_rfc_num, is_draft
3636
from ietf.utils.draft_search import normalize_draftname
3737
from ietf.utils.mail import send_mail, send_mail_message
38-
from ietf.mailtoken.utils import gather_address_list
38+
from ietf.mailtoken.utils import gather_address_list, gather_addresses
3939

4040
# ----------------------------------------------------------------
4141
# Globals
@@ -379,7 +379,8 @@ def email(request, id):
379379
else:
380380
reply_to = get_reply_to()
381381
initial = {
382-
'to': ipr.submitter_email,
382+
'to': gather_addresses('ipr_disclosure_followup',ipr=ipr),
383+
'cc': gather_addresses('ipr_disclosure_followup_cc',ipr=ipr),
383384
'frm': settings.IPR_EMAIL_FROM,
384385
'subject': 'Regarding {}'.format(ipr.title),
385386
'reply_to': reply_to,

ietf/mailtoken/migrations/0002_auto_20150809_1314.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ def make_recipients(apps):
165165
desc="The ipr disclosure handling system",
166166
template='ietf-ipr@ietf.org')
167167

168+
rc(slug='ipr_submitter',
169+
desc="The submitter of an IPR disclosure",
170+
template='{% if ipr.submitter_email %}{{ ipr.submitter_email }}{% endif %}')
171+
168172
rc(slug='logged_in_person',
169173
desc="The person currently logged into the datatracker who initiated a given action",
170174
template='{% if person and person.email_address %}{{ person.email_address }}{% endif %}')
@@ -628,10 +632,19 @@ def mt_factory(slug,desc,recipient_slugs):
628632
])
629633

630634
mt_factory(slug='ipr_disclosure_submitted',
631-
desc="Recipients when an IPR notification is submitted",
635+
desc="Recipients when an IPR disclosure is submitted",
632636
recipient_slugs=['ipr_requests',
633637
])
634638

639+
mt_factory(slug='ipr_disclosure_followup',
640+
desc="Recipients when the secretary follows up on an IPR disclosure submission",
641+
recipient_slugs=['ipr_submitter',
642+
])
643+
644+
mt_factory(slug='ipr_disclosure_followup_cc',
645+
desc="Copied when the secretary follows up on an IPR disclosure submission",
646+
recipient_slugs=[])
647+
635648
def forward(apps, schema_editor):
636649

637650
make_recipients(apps)

ietf/name/fixtures/names.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4567,6 +4567,14 @@
45674567
"model": "mailtoken.recipient",
45684568
"pk": "ipr_requests"
45694569
},
4570+
{
4571+
"fields": {
4572+
"template": "{% if ipr.submitter_email %}{{ ipr.submitter_email }}{% endif %}",
4573+
"desc": "The submitter of an IPR disclosure"
4574+
},
4575+
"model": "mailtoken.recipient",
4576+
"pk": "ipr_submitter"
4577+
},
45704578
{
45714579
"fields": {
45724580
"template": "{% if person and person.email_address %}{{ person.email_address }}{% endif %}",
@@ -5071,12 +5079,30 @@
50715079
"model": "mailtoken.mailtoken",
50725080
"pk": "group_personnel_change"
50735081
},
5082+
{
5083+
"fields": {
5084+
"recipients": [
5085+
"ipr_submitter"
5086+
],
5087+
"desc": "Recipients when the secretary follows up on an IPR disclosure submission"
5088+
},
5089+
"model": "mailtoken.mailtoken",
5090+
"pk": "ipr_disclosure_followup"
5091+
},
5092+
{
5093+
"fields": {
5094+
"recipients": [],
5095+
"desc": "Copied when the secretary follows up on an IPR disclosure submission"
5096+
},
5097+
"model": "mailtoken.mailtoken",
5098+
"pk": "ipr_disclosure_followup_cc"
5099+
},
50745100
{
50755101
"fields": {
50765102
"recipients": [
50775103
"ipr_requests"
50785104
],
5079-
"desc": "Recipients when an IPR notification is submitted"
5105+
"desc": "Recipients when an IPR disclosure is submitted"
50805106
},
50815107
"model": "mailtoken.mailtoken",
50825108
"pk": "ipr_disclosure_submitted"

0 commit comments

Comments
 (0)