[Python-bugs-list] [ python-Bugs-667931 ] BoundaryError: multipart message with no defined boundary

SourceForge.net noreply@sourceforge.net
Sat, 26 Apr 2003 12:17:05 -0700


Bugs item #667931, was opened at 2003-01-14 11:36
Message generated for change (Comment added) made by jasonrm
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=667931&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 3
Submitted By: Jason R. Mastaler (jasonrm)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: BoundaryError: multipart message with no defined boundary

Initial Comment:
More problems with the email package raising
exceptions when trying to parse non-compliant
messages.

Even when lax parsing is enabled, a BoundaryError
is raised when trying to parse the attached spam
message.

I'd like to see some sort of workaround to handle these
cases more gracefully when when lax parsing is
enabled.

This behavior seems like 'strict' parsing behavior to me.



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

>Comment By: Jason R. Mastaler (jasonrm)
Date: 2003-04-26 13:17

Message:
Logged In: YES 
user_id=85984

I'm unclear what you mean by: 
 
``You can always fall back to email.Header.HeaderParser  
when all else fails'' 
 

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

Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-03-05 23:31

Message:
Logged In: YES 
user_id=12800

I see what you're saying, Jason, but I don't know how Parser
could do much better.  You can always fall back to
email.Header.HeaderParser when all else fails (well all else
modulo severely broken headers).


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

Comment By: Jason R. Mastaler (jasonrm)
Date: 2003-02-20 12:33

Message:
Logged In: YES 
user_id=85984

As Python 2.3a2 was just released, I'm worried that
this one is going to fall through the cracks before
2.3-final is released which would be unfortunate because
it would mean I'd have to continue bundling my own
copy of email with my applications.


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

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