[Patches] [ python-Patches-583190 ] Patch to make email parser more robust

noreply@sourceforge.net noreply@sourceforge.net
Wed, 17 Jul 2002 20:36:43 -0700


Patches item #583190, was opened at 2002-07-18 13:36
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=583190&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Nobody/Anonymous (nobody)
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.


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

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