Author: norman
Date: Mon Mar  1 18:50:41 2010
New Revision: 917644

URL: http://svn.apache.org/viewvc?rev=917644&view=rev
Log:
Call stop() after routing the message 

Modified:
    
james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/MailProcessorRouteBuilder.java

Modified: 
james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/MailProcessorRouteBuilder.java
URL: 
http://svn.apache.org/viewvc/james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/MailProcessorRouteBuilder.java?rev=917644&r1=917643&r2=917644&view=diff
==============================================================================
--- 
james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/MailProcessorRouteBuilder.java
 (original)
+++ 
james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/MailProcessorRouteBuilder.java
 Mon Mar  1 18:50:41 2010
@@ -214,8 +214,8 @@
                             .when(new MailStateEquals(Mail.GHOST)).stop()
                              
                             // check if the state of the mail is the same as 
the
-                            // current processor. If not just route it to the 
right endpoint via recipientList.
-                            .when(new 
MailStateNotEquals(processorName)).recipientList().method(MailRouter.class)
+                            // current processor. If not just route it to the 
right endpoint via recipientList and stop processing.
+                            .when(new 
MailStateNotEquals(processorName)).recipientList().method(MailRouter.class).stop()
                             
                             // end first choice
                             .end()



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to