Skip to content

Commit d35ec73

Browse files
committed
Added support for mime-encoding of non-ascii name parts in document notify lists when generating draft email aliases.
- Legacy-Id: 13990
1 parent dfaceb6 commit d35ec73

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ietf/bin/generate-draft-aliases

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ from django.conf import settings
4444

4545
from ietf.doc.models import Document
4646
from ietf.group.utils import get_group_role_emails, get_group_ad_emails
47-
from ietf.utils.aliases import *
48-
import time
47+
from ietf.utils.aliases import dump_sublist
48+
from email.utils import parseaddr
49+
from ietf.utils.mail import formataddr
50+
4951

5052
def get_draft_ad_emails(draft):
5153
" Get AD email for the given draft, if any. "
@@ -100,6 +102,7 @@ def get_draft_notify_emails(draft):
100102
elif re.search(notify_email_alias_regex, e):
101103
pass
102104
else:
105+
e = formataddr(parseaddr(e))
103106
l.append(e)
104107
# Alternative: if we don't want to do expansion, just this would be
105108
# perhaps better (MTA can do expansion too):

0 commit comments

Comments
 (0)