[Patches] [ python-Patches-549133 ] RFC 2231 support for email package

noreply@sourceforge.net noreply@sourceforge.net
Fri, 26 Apr 2002 08:28:33 -0700


Patches item #549133, was opened at 2002-04-26 19:24
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=549133&group_id=5470

Category: Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Oleg Broytmann (phd)
>Assigned to: Barry Warsaw (bwarsaw)
Summary: RFC 2231 support for email package

Initial Comment:
RFC 2231 defines the methods for encoding and decoding
parameters in mail headers.

This patch adds support for parameter decoding. It
changes the interface of Message._get_params_preserve()
- the function can return not only an ASCII string, but
also 3-tuple (charset, language, value). Utils.py
contains low-level functions. All users of
_get_params_preserve() changed, too - get_params(),
get_param(). Message.get_filename() returns either
ASCII or Unicode string.

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

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