Ticket #69 (new defect)

Opened 7 months ago

Last modified 2 weeks ago

Support internationalized domain names

Reported by: fs Owned by: amcgregor
Priority: normal Milestone: 3.0
Component: message-class Version:
Keywords: Cc:

Description

The use of internationalized domain names requires that all domain names which contain non ascii characters are encoded according to RFC 3490 and RFC 3492. Currently, using an IDN leads to exceptions.

TurboMail should support IDNs. Python ships the idna encoding since Python 2.3.

Attachments

idna.patch (2.4 kB) - added by fs 7 months ago.
proposed patch which still has some problems as it breaks some validity tests

Change History

Changed 7 months ago by fs

proposed patch which still has some problems as it breaks some validity tests

Changed 2 weeks ago by amcgregor

This issue needs to be re-examined as TM3 is using Python-standard email.Utils.parseaddr and email.Utils.formataddr methods, now. The correct place for a permanent solution would be in the Python standard library, though we can definitely monkeypatch it.

All we need then is a new method for validation of I15D domains. The current regular expression is inadequate.

Changed 2 weeks ago by amcgregor

With a modified validation regular expression (to support unicode) and part of the above idna.patch I believe I have a solution which doesn't break existing unit tests. Committed in r112.

Note: See TracTickets for help on using tickets.