----- Original Message -----
From: "Anthony Eden" <[EMAIL PROTECTED]>
To: "Java Apache Mail Server" <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 3:43 PM
Subject: Re: New mailet API proposed
> Before writing a new class to support address parsing, can't you extend
the
> javax.mail.InternetAddress class and ass the functionality?
>
> Sincerely,
> Anthony Eden
We don't need personal address as these are straight forward user@host SMTP
addresses, so I don't think extending javax.mail.InternetAddress is
appropriate. However, I don't think we need a new class at all. Two final
static methods in MailetUtils would be extremely efficient and let everyone
continue working with Strings. Parsing a recipient into user@host is not
the expensive part of the mail server, and I think a new class would only
create more object overhead. I'm quite willing to be proved wrong... I've
got OptimizeIt for performance analysis and will run JAMES under it... I bet
after sending a thousand message through it, and MailetUtils doesn't take
0.2% of CPU utilization.
Serge Knystautas
Loki Technologies
http://www.lokitech.com/
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]