On Monday, Aug 18, 2003, at 16:39 Europe/London, Dain Sundstrom wrote:

I think this would be much easier and simpler if you used java.net.URI to parse the basic structure, and only hand parsed the email address.

Damn. I didn't know about this class the first time round, because that would have been the ideal class to use initially :-)

I've rewritten the method to use the URI instead. Thanks for the heads up!

Alex.


Attachment: javax-mail-URLName2.patch
Description: Binary data



PS This patch is from the repository version which uses URL as the parseString method, so if you've applied that patch this will be for the previous version.

I've also re-included the same test as before so that you've got both together.

Attachment: javax-mail-URLNameTest.patch
Description: Binary data

Reply via email to