You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by William Ferguson <wi...@versata.com> on 2001/12/04 03:56:34 UTC

Mail Task failing on QUIT message

Hi,

I was just wondering whether anyone else has seen the mail task play up when
sending the QUIT message?

The mail is sent OK, but the mail task fails when sending the QUIT message
with an ndexOutOfBoundsException in line 87 of
org.apache.tools.mail.SmtpResponseReader.

It appears that the QUIT message is returning an empty String.

This is using Ant v1.4.1, and I suspect that our mail server is probably
MS-Exchange pretending to be an smtp server.

Has anyonelese seen this?


William Ferguson
Technical Lead - Workflow Functionality
Versata, Inc.
"Business Logic Development and Management"
Ph     +61 03 9428 0788
Fax    +61 03 9428 0786
Email  william_ferguson@versata.com
www.versata.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Mail Task failing on QUIT message

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "William Ferguson" <wi...@versata.com>
To: <an...@jakarta.apache.org>
Sent: Monday, December 03, 2001 6:56 PM
Subject: Mail Task failing on QUIT message


> Hi,
>
> I was just wondering whether anyone else has seen the mail task play up
when
> sending the QUIT message?
>
> The mail is sent OK, but the mail task fails when sending the QUIT message
> with an ndexOutOfBoundsException in line 87 of
> org.apache.tools.mail.SmtpResponseReader.
>
> It appears that the QUIT message is returning an empty String.
>
> This is using Ant v1.4.1, and I suspect that our mail server is probably
> MS-Exchange pretending to be an smtp server.
>
> Has anyonelese seen this?

I havent come across this, but I have been modifying mail so that there is a
failonerror option, so you can at least specify a 'dont care' mail send.
This will probably make its way into the nightly build in a few days, once I
am happy with it.

why not try the MimeMail task, which uses Sun's implementation of SMTP. If
that doesnt work either, then you probably need to fix the Apache version to
work with your server.

-steve

ps. consider filing a bug report




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>