[Python-bugs-list] [ python-Bugs-633550 ] HeaderParseError: no header value

noreply@sourceforge.net noreply@sourceforge.net
Mon, 04 Nov 2002 15:55:38 -0800


Bugs item #633550, was opened at 2002-11-04 16:55
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=633550&group_id=5470

Category: Python Library
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason R. Mastaler (jasonrm)
>Assigned to: Barry A. Warsaw (bwarsaw)
Summary: HeaderParseError: no header value

Initial Comment:
We all know according to rfc 2822, that a header
field should be composed of name: value, but
sometimes (as in the case of SPAM), this is not
the case.

In email 2.4.3, if a header field lacks a value portion
a HeaderParseError is raised.

For an example message and traceback, see
http://article.gmane.org/gmane.comp.python.mime.devel/325

I think when strict parsing is turned on, this 
behavior is fine, but not when it's turned off.

In lax parsing mode, I don't think this should
raise an exception. Perhaps just skipping the
bogus header field is acceptable.


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

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