vincenzo    2003/09/19 07:53:58

  Modified:    src/xdocs Tag: branch_2_1_fcs provided_matchers_2_1.xml
  Added:       src/java/org/apache/james/transport/matchers Tag:
                        branch_2_1_fcs HasMailAttributeWithValue.java
  Log:
  Adding the HasMailAttributeWithValue matcher.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.2.4.2   +23 -0     james-server/src/xdocs/provided_matchers_2_1.xml
  
  Index: provided_matchers_2_1.xml
  ===================================================================
  RCS file: /home/cvs/james-server/src/xdocs/provided_matchers_2_1.xml,v
  retrieving revision 1.2.4.1
  retrieving revision 1.2.4.2
  diff -u -r1.2.4.1 -r1.2.4.2
  --- provided_matchers_2_1.xml 21 May 2003 18:10:42 -0000      1.2.4.1
  +++ provided_matchers_2_1.xml 19 Sep 2003 14:53:58 -0000      1.2.4.2
  @@ -50,6 +50,29 @@
   <p>Description: Matches mails that have the specified header.  All recipients are 
returned.</p>
   <p>Configuration string: The name of the header whose presence determines the 
match.</p>
   </subsection>
  +<subsection name="HasMailAttribute">
  +<p>Description: Matches mails that have the specified Mail Attribute.  All 
  +recipients are returned.</p>
  +<p>Configuration string: The name of the Mail Attribute to match. For example:<br/>
  +<pre><code>
  +&lt;mailet match="HasMailAttribute=name" class=&quot;&lt;any-class&gt;&quot;&gt;
  +</code></pre>
  +</p>
  +</subsection>
  +<subsection name="HasMailAttributeWithValue">
  +<p>Description: Matches mails that have the specified Mail Attribute and the
  +specified MailAttribute value. All recipients are returned.</p>
  +<p>MailAttributes are types of Object whereas the value specified in the Matcher
  +condition is of type String. The toString() method is used to obtain a String
  +representation of the Mail Attribute value for matching. The 
  +String.equals(String) method tests for a match.</p>
  +<p>Configuration string: The name of the Mail Attribute to be matched,  a comma
  +and then the String value to be matched. For example:<br/>
  +<pre><code>
  +&lt;mailet match="HasMailAttributeWithValue=name, value" 
class=&quot;&lt;any-class&gt;&quot;&gt;
  +</code></pre>
  +</p>
  +</subsection>
   <subsection name="HostIs">
   <p>Description: Matches mails that are sent to email addresses on hosts that are in 
the configuration list.  Only 
   recipients that are on one of the hosts are returned.</p>
  
  
  
  No                   revision
  No                   revision
  1.1.2.1   +0 -0      
james-server/src/java/org/apache/james/transport/matchers/HasMailAttributeWithValue.java
  
  Index: HasMailAttributeWithValue.java
  ===================================================================
  RCS file: 
/home/cvs/james-server/src/java/org/apache/james/transport/matchers/HasMailAttributeWithValue.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  

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

Reply via email to