[Python-bugs-list] [ python-Bugs-826756 ] email/Generator.py:
Incorrect header output
SourceForge.net
noreply at sourceforge.net
Mon Oct 20 09:42:10 EDT 2003
Bugs item #826756, was opened at 2003-10-20 06:23
Message generated for change (Settings changed) made by bwarsaw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=826756&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Pronk (mjepronk)
>Assigned to: Barry A. Warsaw (bwarsaw)
Summary: email/Generator.py: Incorrect header output
Initial Comment:
I've found a small bug when using the email/Parser.py
classes. When there is a long "Subject" header, it will
be wrapped to multiple lines, which are preceded by a
tab. This is undesired behaviour, because e-mail
clients show this tab in the subject. Especially,
Mozilla for Windows shows a strange square symbol. The
following code in email/Generator.py (line 180)
resolves the problem:
else:
# Header's got lots of smarts, so use it.
if h.lower() == 'subject':
cont_ws = ' '
else:
cont_ws = '\t'
print >> self._fp, Header(
v, maxlinelen=self.__maxheaderlen,
header_name=h,
continuation_ws=cont_ws).encode()
For more information you can e-mail me: matthias -at-
rubberbiscuit.nl
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=826756&group_id=5470
More information about the Python-bugs-list
mailing list