From ff677ed66de18aaebc68eaff82fb04ee6d6e49c6 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 1 Feb 2010 05:59:10 +0000 Subject: [PATCH] fix comment git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4445 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/mailer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.30.2