hgext/notify.py
branchstable
changeset 43327 ac33550f63e8
parent 43326 ef81de93143e
child 43328 416041f97cc3
--- a/hgext/notify.py	Thu Oct 24 15:28:00 2019 +0200
+++ b/hgext/notify.py	Thu Oct 24 15:46:16 2019 +0200
@@ -148,6 +148,7 @@
 from __future__ import absolute_import
 
 import email.errors as emailerrors
+import email.utils as emailutils
 import fnmatch
 import hashlib
 import socket
@@ -450,7 +451,7 @@
             )
             mail.sendmail(
                 self.ui,
-                stringutil.email(msg[r'From']),
+                emailutils.parseaddr(msg[r'From'])[1],
                 subs,
                 msgtext,
                 mbox=self.mbox,