From: richard Date: Mon, 1 Feb 2010 05:59:10 +0000 (+0000) Subject: fix comment X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ff677ed66de18aaebc68eaff82fb04ee6d6e49c6;p=roundup.git fix comment git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4445 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/mailer.py b/roundup/mailer.py index 58fc33b..d44568e 100644 --- a/roundup/mailer.py +++ b/roundup/mailer.py @@ -40,7 +40,8 @@ def nice_sender_header(name, address, charset): 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: