##// END OF EJS Templates
py3: use stdlib's parseaddr() to get sender header in notify extension...
Denis Laxalde -
r43635:ac33550f stable
parent child Browse files
Show More
@@ -148,6 +148,7 web.baseurl
148 from __future__ import absolute_import
148 from __future__ import absolute_import
149
149
150 import email.errors as emailerrors
150 import email.errors as emailerrors
151 import email.utils as emailutils
151 import fnmatch
152 import fnmatch
152 import hashlib
153 import hashlib
153 import socket
154 import socket
@@ -450,7 +451,7 class notifier(object):
450 )
451 )
451 mail.sendmail(
452 mail.sendmail(
452 self.ui,
453 self.ui,
453 stringutil.email(msg[r'From']),
454 emailutils.parseaddr(msg[r'From'])[1],
454 subs,
455 subs,
455 msgtext,
456 msgtext,
456 mbox=self.mbox,
457 mbox=self.mbox,
General Comments 0
You need to be logged in to leave comments. Login now