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? If we move this functionality to any component, I would suggest to make a new class in Base for it. That would give us the benefit to be able to use it in other components, too. For example UserInput would make some sense (some how). 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