On 07/09/2007 01:48 PM Derick Rethans wrote: > On Thu, 5 Jul 2007, Tobias Schlitt wrote:
>> On 07/05/2007 02:53 PM Derick Rethans wrote: >>> On Thu, 5 Jul 2007, Tobias Schlitt wrote: >>>> On 07/05/2007 10:27 AM Derick Rethans wrote: >>>>> The last two functions "convertToPunyCode" and "convertToUnicode" do >>>>> actually not really belong in the Mail component at all, as they are >>>>> generic methods. I think they actually belong more in Url. I would >>>>> therefore suggest to create two methods on ezcUrl (and the algorithms it >>>>> self in ezcUrlTools as static methods) that can convert a Url toASCII() >>>>> (with the punycode algorithms) and toUnicode() with the reverse >>>>> algorithm. (I am naming them toASCII() and toUnicode() here because >>>>> that's what wikipedia suggests). >>>> That would mean a dependency Mail -> Url? >>> No, why? AFAIK we basically agreed that we don't do any of those >>> conversions ourselves, but that's up to the application. >> True, but the Url component (AFAIK) by now only deals with URLs and >> neither DNs, nor email addresses are URLs. So, why should anyone need to >> install Url, if he needs to convert IDNs to their ASCII-representation >> in Mail? > In the same way I could ask "why should anyone need to install Mail, > when he wants to convert domain names to punycode". In my opinion this > has much to do with URLs, so it makes sense to put this in the Url > component... And you could argue wheter an email address is a Url - I > don't find that too strange. So, why not implement the puny-coding stuff in Base? That way Mail could make use of it as well as Url. Regards, Toby -- Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer [EMAIL PROTECTED] | eZ Systems AS | ez.no -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components