james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/transport JamesSpoolManager.java
Date Tue, 17 Jun 2003 22:07:29 GMT
noel        2003/06/17 15:07:29

  Modified:    src/java/org/apache/james/transport JamesSpoolManager.java
  Log:
  The recent onException changes only handle MessagingException, so force non-MessagingException
exceptions to the ERROR processor.
  
  Revision  Changes    Path
  1.34      +5 -1      jakarta-james/src/java/org/apache/james/transport/JamesSpoolManager.java
  
  Index: JamesSpoolManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/JamesSpoolManager.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- JamesSpoolManager.java	17 Jun 2003 16:03:14 -0000	1.33
  +++ JamesSpoolManager.java	17 Jun 2003 22:07:28 -0000	1.34
  @@ -419,6 +419,10 @@
                       mail.setErrorMessage(e.getMessage());
                   } else {
                       //We got an error... send it to the requested processor
  +                    if (!(e instanceof MessagingException)) {
  +                        //We got an error... send it to the error processor
  +                        mail.setState(Mail.ERROR);
  +                    }
                       mail.setErrorMessage(e.getMessage());
                   }
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message