Fixed my earlier submission.  The warning should not be issued for the
Mail.ERROR processor.
Index: src/java/org/apache/james/transport/LinearProcessor.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-james/src/java/org/apache/james/transport/LinearProcessor.java,v
retrieving revision 1.8
diff -u -r1.8 LinearProcessor.java
--- src/java/org/apache/james/transport/LinearProcessor.java    17 Aug 2002 18:43:55 
-0000      1.8
+++ src/java/org/apache/james/transport/LinearProcessor.java    30 Sep 2002 01:16:41 
+-0000
@@ -185,6 +185,17 @@
         Mailet terminatingMailet = 
             new GenericMailet() {
                 public void service(Mail mail) {
+                    if (!(Mail.ERROR.equals(mail.getState()))) {
+                        // Don't complain if we fall off the end of the
+                        // error processor.  That is currently the
+                        // normal situation for James, and the message
+                        // will show up in the error store.
+                        StringBuffer warnBuffer = new StringBuffer(256)
+                                              .append("Message ")
+                                              .append(((MailImpl)mail).getName())
+                                              .append(" reached the end of this 
+processor, and is automatically deleted.  This may indicate a configuration error.");
+                        LinearProcessor.this.getLogger().warn(warnBuffer.toString());
+                    }
                     mail.setState(Mail.GHOST);
                 }
             

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to