Thanks, I've never had any trouble with that before, but this makes more sense anyway
(relying on getAddress's behavior as opposed to assuming how toString will work).
Patch applied.
Serge Knystautas
Loki Technologies
http://www.lokitech.com/
>�From: Alan Magrath <[EMAIL PROTECTED]>
>�To: [EMAIL PROTECTED]
>�Subject: Possible bug in: org.apache.james.SmartTransport
>�Date: Thu Aug 17 07:19:15 EDT 2000
>
> SORRY: forget to include class name
>
> I think there may be a bug in the above class in the "sendMessage"
> method.
>
>
> ---------------------------------------------------
> public void sendMessage(MimeMessage message, InternetAddress[]
> recipients)
> throws MessagingException {
> if (recipients.length == 0)
> return;
> String host = recipients[0].toString();
> host = host.substring (host.indexOf ("@") + 1);
>
> etc.etc.
> ---------------------------------------------------
>
>
> The value of "host" seems to include the final angle bracket ">" of the
> address. Instead, could you not use:
>
>
> String host = recipients[0].getAddress();
>
> this string omits the angle brackets
>
> ---------------------------------------------------
>
> Regards,
>
> Alan
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]