comparison roundup/mailer.py @ 5834:b3905faf58ea

Revert that last attempt to fix. Breaks things worse. Reopened https://issues.roundup-tracker.org/issue2551049.
author John Rouillard <rouilj@ieee.org>
date Fri, 05 Jul 2019 20:59:57 -0400
parents 3491971eb694
children aa26a260e81c
comparison
equal deleted inserted replaced
5833:3491971eb694 5834:b3905faf58ea
33 # construct an address header so it's as human-readable as possible 33 # construct an address header so it's as human-readable as possible
34 # even in the presence of a non-ASCII name part 34 # even in the presence of a non-ASCII name part
35 if not name: 35 if not name:
36 return address 36 return address
37 try: 37 try:
38 encname = b2s(name).encode('ASCII') 38 encname = b2s(name.encode('ASCII'))
39 except UnicodeEncodeError: 39 except UnicodeEncodeError:
40 # use Header to encode correctly. 40 # use Header to encode correctly.
41 encname = Header(name, charset=charset).encode() 41 encname = Header(name, charset=charset).encode()
42 42
43 # the important bits of formataddr() 43 # the important bits of formataddr()

Roundup Issue Tracker: http://roundup-tracker.org/