[Patches] [ python-Patches-963906 ] Unicode email address helper
SourceForge.net
noreply at sourceforge.net
Wed Aug 25 15:19:51 CEST 2004
Patches item #963906, was opened at 2004-06-01 01:36
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=963906&group_id=5470
Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Stuart Bishop (zenzen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unicode email address helper
Initial Comment:
Converting email addresses between Unicode and ASCII is non
trivial, as three different encodings are used (RFC2047, IDNA and
ASCII). Here is an EmailAddress I use and a test suite, which I feel
should be integrated into the email package. I'm quite happy to
implement a different interface if the 'unicode subclass' design is
unsuitable, although I got no feedback from the Email-SIG so they
are either happy with it or asleep ;)
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2004-08-25 15:19
Message:
Logged In: YES
user_id=21627
Oops, test cases are there - only documentation is lacking.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2004-08-25 15:18
Message:
Logged In: YES
user_id=21627
I think it is inappropriate to create new API for this.
Instead, one of the many functions that already deal with
address parsing need to be enhanced. For example,
email.Util.formataddr should learn to format unicode
strings, too. Likewise, parseaddr could grow a parameter
do_unicode, or a second function parseaddr_unicode could be
added. There is IMO no need for a new class.
In addition, this patch lacks documentation and test cases.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=963906&group_id=5470
More information about the Patches
mailing list