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

SourceForge.net noreply at sourceforge.net
Fri Jul 13 05:48:34 CEST 2007


Bugs item #1752723, was opened at 2007-07-12 08:52
Message generated for change (Comment added) made by nnorwitz
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: Barry A. Warsaw (bwarsaw)
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



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

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-07-12 20:48

Message:
Logged In: YES 
user_id=33168
Originator: NO

Barry, could you take a look?  Thanks.

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

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