[Python-bugs-list] [ python-Bugs-648119 ] more email ASCII decoding errors

noreply@sourceforge.net noreply@sourceforge.net
Tue, 03 Dec 2002 15:44:59 -0800


Bugs item #648119, was opened at 2002-12-03 16:44
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=648119&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: Nobody/Anonymous (nobody)
Summary: more email ASCII decoding errors

Initial Comment:
email package v2.4.3.

A similar problem was reported and fixed in
http://python.org/sf/621457

The problem is that when using the Header.Header
class to create a header, and the header value
contains non-ASCII data that can't be decoded,
a UnicodeError is raised.

This is a problem when using email to process
SPAM (as I do in TMDA), as SPAM often does 
contain random non-ASCII data in its headers.

Some way of handling these cases more 
gracefully, without provoking a UnicodeError is 
necessary.

See the attached traceback.txt for an example.
The tmda-mess.txt file referenced from traceback.txt 
is also attached in case you want to reproduce
the problem.


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

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