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:04:08 GMT
noel        2003/06/17 15:04:08

  Modified:    src/java/org/apache/james/transport Tag: branch_2_1_fcs
                        JamesSpoolManager.java
  Log:
  The recent onException changes only handle MessagingException, so force non-MessagingException
exceptions to the ERROR processor.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.20.4.7  +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.20.4.6
  retrieving revision 1.20.4.7
  diff -u -r1.20.4.6 -r1.20.4.7
  --- JamesSpoolManager.java	16 Jun 2003 05:25:27 -0000	1.20.4.6
  +++ JamesSpoolManager.java	17 Jun 2003 22:04:08 -0000	1.20.4.7
  @@ -467,6 +467,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