> Can anyone who know the remotedelivery code well enough
> comment if the folloing would work:
> replace
>
> private long getNextDelay (int retry_count) {
> return delayTimes[retry_count-1];
> }
>
> with
>
> private long getNextDelay (int retry_count) {
> try {
> return delayTimes[retry_count-1];
> }
> catch (ArrayIndexOutOfBoundsException ex){
> return 0;
> }
> }
>
> ie, if outside of defined delay times, next delay time is 0,
> so process now!
>
> Will it then realise that this is outside of the maximum
> retries and bounce it?
>
> Daniel.
Yes. I'm not sure wether it would be better to return 0 or
"delayTimes[delayTimes.length-1]". This only happens when you decrease the
maxRetries.
The check for maxRetry is in the failMessage method:
--
int retries = Integer.parseInt(mail.getErrorMessage());
if (retries < maxRetries) {
--
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]