Skip to content

Commit ac75b59

Browse files
author
Richard Jones
committed
fix comment
1 parent 883a3c1 commit ac75b59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/mailer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def nice_sender_header(name, address, charset):
4040
if specialsre.search(encname):
4141
encname = '"%s"'%escapesre.sub(r'\\\g<0>', encname)
4242

43-
# now use Header again to wrap the line if necessary
43+
# now format the header as a string - don't return a Header as anonymous
44+
# headers play poorly with Messages (eg. won't get wrapped properly)
4445
return '%s <%s>'%(encname, address)
4546

4647
class Mailer:

0 commit comments

Comments
 (0)