You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2002/12/14 04:30:11 UTC
cvs commit: jakarta-james/src/java/org/apache/james/transport/mailets RemoteDelivery.java
noel 2002/12/13 19:30:11
Modified: src/java/org/apache/james/transport/mailets
RemoteDelivery.java
Log:
Improve handling of 5xx status codes
Revision Changes Path
1.33 +3 -3 jakarta-james/src/java/org/apache/james/transport/mailets/RemoteDelivery.java
Index: RemoteDelivery.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/RemoteDelivery.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- RemoteDelivery.java 10 Nov 2002 19:13:16 -0000 1.32
+++ RemoteDelivery.java 14 Dec 2002 03:30:11 -0000 1.33
@@ -307,8 +307,8 @@
}
}
// The rest of the recipients failed for one reason or another.
- // let the fail message handle it like a permanent exception.
- return failMessage(mail, sfe, true);
+ // let failMessage handle it -- 5xx codes are permanent, others temporary.
+ return failMessage(mail, sfe, (('5' == sfe.getMessage().charAt(0)) ? true : false));
} catch (MessagingException ex) {
// We should do a better job checking this... if the failure is a general
// connect exception, this is less descriptive than more specific SMTP command
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>