[ python-Bugs-1752723 ] email.message_from_string: initial line gets discarded

SourceForge.net noreply at sourceforge.net
Thu Jul 12 17:52:52 CEST 2007


Bugs item #1752723, was opened at 2007-07-12 10:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1752723&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David Webster (dwebster99)
Assigned to: Nobody/Anonymous (nobody)
Summary: email.message_from_string: initial line gets discarded

Initial Comment:
If the first line of the string passed to email.message_from_string starts with whitespace, the line gets discarded. I believe the problem is in the feed parser, but I don't have a test case to prove that. 

The attached file is a short program to illustrate the problem. When I run it I get the output shown below. The line count should be unchanged in both cases. 

leading whitespace :
    Body changed: lines in: 3  lines out: 2
left justified :
    Line count was preserved.

Platform:
  Python 2.5.1
  Windows 2000 SP4



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1752723&group_id=5470


More information about the Python-bugs-list mailing list