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 no...@apache.org on 2003/10/20 05:32:45 UTC

cvs commit: james-server/src/java/org/apache/james/transport LinearProcessor.java

noel        2003/10/19 20:32:45

  Modified:    src/java/org/apache/james/transport Tag: branch_2_1_fcs
                        LinearProcessor.java
  Log:
  document onMatchException and onMailetException
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.10.4.5  +23 -14    james-server/src/java/org/apache/james/transport/LinearProcessor.java
  
  Index: LinearProcessor.java
  ===================================================================
  RCS file: /home/cvs/james-server/src/java/org/apache/james/transport/LinearProcessor.java,v
  retrieving revision 1.10.4.4
  retrieving revision 1.10.4.5
  diff -u -r1.10.4.4 -r1.10.4.5
  --- LinearProcessor.java	16 Jun 2003 05:25:28 -0000	1.10.4.4
  +++ LinearProcessor.java	20 Oct 2003 03:32:45 -0000	1.10.4.5
  @@ -81,22 +81,31 @@
    * Implements a processor for mails, directing the mail down
    * the chain of matchers/mailets.
    *
  - * @author Serge Knystautas <se...@lokitech.com>
  - * @author Federico Barbieri <sc...@systemy.it>
  - * @author Steve Short <ss...@postx.com>
  - * @author Peter M. Goldstein <fa...@alum.mit.edu>
  - *
    *  SAMPLE CONFIGURATION
  - *  <processor name="try" onerror="return,log">
  - *      <mailet match="RecipientIsLocal" class="LocalDelivery">
  - *      </mailet>
  - *      <mailet match="All" class="RemoteDelivery">
  - *          <delayTime>21600000</delayTime>
  - *          <maxRetries>5</maxRetries>
  - *      </mailet>
  - *  </processor>
  + *  &lt;processor name="try" onerror="return,log"&gt;
  + *      &lt;mailet match="RecipientIsLocal" class="LocalDelivery"&gt;
  + *      &lt;/mailet&gt;
  + *      &lt;mailet match="All" class="RemoteDelivery"&gt;
  + *          &lt;delayTime&gt;21600000&lt;/delayTime&gt;
  + *          &lt;maxRetries&gt;5&lt;/maxRetries&gt;
  + *      &lt;/mailet&gt;
  + *  &lt;/processor&gt;
    *
    * Note that the 'onerror' attribute is not yet supported.
  + *
  + * As of James v2.2.0a5, 'onerror' functionality is implemented, but
  + * it is implemented on the &lt;mailet&gt; tag.  The specification is:
  + *
  + *   &lt;mailet match="..." class="..."
  + *       [onMatchException="{noMatch|matchAll|error|&lt;aProcessorName&gt;}"] 
  + *       [onMailetException="{ignore|error|&lt;aProcessorName&gt;}"]&gt;
  + *
  + * noMatch:   no addresses are considered to match
  + * matchAll:  all addresses are considered to match
  + * error:     as before, send the message to the ERROR processor
  + *
  + * Otherwise, a processor name can be specified, and the message will
  + * be sent there.
    *
    * <P>CVS $Id$</P>
    * @version 2.2.0
  
  
  

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