diff --git a/roundup/mailer.py b/roundup/mailer.py
index 58fc33b91edd509e2127cb550b5d5f17457ae420..d44568e5fb190751b7ebc99e7acdeebb17e1c501 100644 (file)
--- a/roundup/mailer.py
+++ b/roundup/mailer.py
if specialsre.search(encname):
encname = '"%s"'%escapesre.sub(r'\\\g<0>', encname)
- # now use Header again to wrap the line if necessary
+ # now format the header as a string - don't return a Header as anonymous
+ # headers play poorly with Messages (eg. won't get wrapped properly)
return '%s <%s>'%(encname, address)
class Mailer: