[Patches] [ python-Patches-583190 ] Patch to make email parser more robust
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 18 Jul 2002 16:09:12 -0700
Patches item #583190, was opened at 2002-07-17 23:36
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=583190&group_id=5470
Category: Library (Lib)
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: Patch to make email parser more robust
Initial Comment:
the following patch against current CVS of the email
package, as of 2002/07/18 fixes the following problems:
in non-strict mode, messages don't require a blank
line at the end
with a missing end-terminator. A single newline is
sufficient now.
The remaining fixes apply in strict or non-strict mode:
Handle trailing whitespace at the end of a boundary.
Had to switch
from using string.split() to re.split().
Handle whitespace on the end of a parameter list for
Content-type.
Handle whitespace on the end of a plain content-type
header.
----------------------------------------------------------------------
>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2002-07-18 19:09
Message:
Logged In: YES
user_id=12800
I made a few stylistic mods to the Parser.py patch, but
otherwise the patch looks fine. Please double check that I
didn't mess anything up!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=583190&group_id=5470