[Patches] [ python-Patches-568348 ] Add param to email.Utils.decode()

noreply@sourceforge.net noreply@sourceforge.net
Sat, 20 Jul 2002 11:35:38 -0700


Patches item #568348, was opened at 2002-06-12 23:47
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=568348&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: atsuo ishimoto (ishimoto)
>Assigned to: Barry A. Warsaw (bwarsaw)
Summary: Add param to email.Utils.decode() 

Initial Comment:
While email.Utils.decode() is a quite useful 
function, I got a real
world problem. 

Here in Japan, I receive a lot of RFC-hostile 
messages everyday. Since
they contains illegal characters cannot be 
converted to Unicode by
JapaneseCodecs, email.Utils.decode() chokes with 
UnicodeError. My
solution is an adding optional 'errors' parameter 
which is passed to unicode()
function. This allows me to replace illegal 
characters, instead of
abandoning entire text.



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

Comment By: Gerhard Häring (ghaering)
Date: 2002-06-21 06:45

Message:
Logged In: YES 
user_id=163326

I'd recommend to assign this patch to Barry Warsaw
(bwarsaw), who is the maintainer of the email module.

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

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