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 se...@apache.org on 2001/09/11 06:34:20 UTC

cvs commit: jakarta-james/src/java/org/apache/james/transport JamesSpoolManager.java

serge       01/09/10 21:34:20

  Modified:    src/java/org/apache/james/transport JamesSpoolManager.java
  Log:
  Patch to make sure "ghosted" messages are removed from a spool (not sure how a ghost message is getting saved to repository, but this will prevent it from trying to load the processor of name "ghost")
  
  Revision  Changes    Path
  1.4       +6 -2      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JamesSpoolManager.java	2001/06/21 17:20:32	1.3
  +++ JamesSpoolManager.java	2001/09/11 04:34:20	1.4
  @@ -35,8 +35,8 @@
    * @author Serge Knystautas <se...@lokitech.com>
    * @author Federico Barbieri <sc...@systemy.it>
    *
  - * This is $Revision: 1.3 $
  - * Committed on $Date: 2001/06/21 17:20:32 $ by: $Author: charlesb $ 
  + * This is $Revision: 1.4 $
  + * Committed on $Date: 2001/09/11 04:34:20 $ by: $Author: serge $
    */
   public class JamesSpoolManager
       extends AbstractLoggable
  @@ -215,6 +215,10 @@
       protected void process(MailImpl mail) {
           while (true) {
               String processorName = mail.getState();
  +            if (processorName.equals(Mail.GHOST)) {
  +                //This message should disappear
  +                return;
  +            }
               try {
                   LinearProcessor processor
                       = (LinearProcessor)processors.get(processorName);
  
  
  

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