We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfaceb6 commit d35ec73Copy full SHA for d35ec73
1 file changed
ietf/bin/generate-draft-aliases
@@ -44,8 +44,10 @@ from django.conf import settings
44
45
from ietf.doc.models import Document
46
from ietf.group.utils import get_group_role_emails, get_group_ad_emails
47
-from ietf.utils.aliases import *
48
-import time
+from ietf.utils.aliases import dump_sublist
+from email.utils import parseaddr
49
+from ietf.utils.mail import formataddr
50
+
51
52
def get_draft_ad_emails(draft):
53
" Get AD email for the given draft, if any. "
@@ -100,6 +102,7 @@ def get_draft_notify_emails(draft):
100
102
elif re.search(notify_email_alias_regex, e):
101
103
pass
104
else:
105
+ e = formataddr(parseaddr(e))
106
l.append(e)
107
# Alternative: if we don't want to do expansion, just this would be
108
# perhaps better (MTA can do expansion too):
0 commit comments