[Patches] [ python-Patches-568348 ] Add param to email.Utils.decode()
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 22 Jul 2002 12:55:16 -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: Barry A. Warsaw (bwarsaw)
Date: 2002-07-22 15:55
Message:
Logged In: YES
user_id=12800
email.Utils.decode() is deprecated in favor of
email.Header.decode_header(). Is this patch still worth it?
I think email.Utils.decode() ought to go away.
----------------------------------------------------------------------
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