[forwarded from http://bugs.debian.org/178777]
originally reported for mailman, then reassigned to python
It seems like this problem is because
email.Utils.formataddr doesn't
handle newlines embedded in headers too well.
: tfheen@yiwaz ..man/mailman-2.1.3/Mailman > python
Python 2.3.3a0 (#2, Nov 21 2003, 00:36:53)
[GCC 3.3.2 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> from email.Utils import formataddr
>>> formataddr(("Books is a list for discussing all
aspects of the audio\nand text boox",
'books@spanky.braille.uwo.ca')) 'Books is a list for
discussing all aspects of the audio\nand text boox
<books@spanky.braille.uwo.ca>'
>>>
IMHO, it should either strip newlines or at least
insert a space in front of them so they aren't
interpreted as a new header.
|