You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-dev@james.apache.org by rd...@apache.org on 2008/08/25 21:47:16 UTC

svn commit: r688852 [48/48] - in /james/site/trunk/www/mailet/standard: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/james/ apidocs/org/apache/james/transport/ apidocs/org/apache/james/transport/mailets/ apidocs/org/apache/james/tran...

Added: james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderHostIsLocal.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderHostIsLocal.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderHostIsLocal.html (added)
+++ james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderHostIsLocal.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,62 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>SenderHostIsLocal xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/james/transport/matchers/SenderHostIsLocal.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_javadoccomment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em class="jxr_javadoccomment"> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em class="jxr_javadoccomment"> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em class="jxr_javadoccomment"> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong class="jxr_keyword">package</strong> org.apache.james.transport.matchers;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.GenericMatcher;
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.Mail;
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> java.util.Collection;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="29" href="#29">29</a>  <em class="jxr_javadoccomment"> * Checks the sender's displayed domain name against a the hosts serviced by</em>
+<a name="30" href="#30">30</a>  <em class="jxr_javadoccomment"> * this mail context. &lt;br&gt;</em>
+<a name="31" href="#31">31</a>  <em class="jxr_javadoccomment"> * &lt;br&gt;</em>
+<a name="32" href="#32">32</a>  <em class="jxr_javadoccomment"> * Sample Configuration: &lt;br&gt;</em>
+<a name="33" href="#33">33</a>  <em class="jxr_javadoccomment"> * &lt;br&gt;</em>
+<a name="34" href="#34">34</a>  <em class="jxr_javadoccomment"> * &amp;lt;mailet match="SenderHostIsLocal" class="SpamAssassin"&amp;gt; &amp;lt;/mailet&amp;gt;</em>
+<a name="35" href="#35">35</a>  <em class="jxr_javadoccomment"> * &lt;br&gt;</em>
+<a name="36" href="#36">36</a>  <em class="jxr_javadoccomment"> * &lt;br&gt;</em>
+<a name="37" href="#37">37</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="38" href="#38">38</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/james/transport/matchers/SenderHostIsLocal.html">SenderHostIsLocal</a> <strong class="jxr_keyword">extends</strong> GenericMatcher {
+<a name="39" href="#39">39</a>      <strong class="jxr_keyword">public</strong> Collection match(Mail mail) {
+<a name="40" href="#40">40</a>          <strong class="jxr_keyword">if</strong> (mail.getSender() != <strong class="jxr_keyword">null</strong>
+<a name="41" href="#41">41</a>                  &amp;&amp; <strong class="jxr_keyword">this</strong>.getMailetContext().isLocalServer(
+<a name="42" href="#42">42</a>                          mail.getSender().getHost().toLowerCase())) {
+<a name="43" href="#43">43</a>              <strong class="jxr_keyword">return</strong> mail.getRecipients();
+<a name="44" href="#44">44</a>          }
+<a name="45" href="#45">45</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>      }
+<a name="48" href="#48">48</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderIs.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderIs.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderIs.html (added)
+++ james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderIs.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,68 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>SenderIs xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/james/transport/matchers/SenderIs.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_javadoccomment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em class="jxr_javadoccomment"> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em class="jxr_javadoccomment"> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em class="jxr_javadoccomment"> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">package</strong> org.apache.james.transport.matchers;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.GenericMatcher;
+<a name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.Mail;
+<a name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.MailAddress;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> java.util.Collection;
+<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> java.util.StringTokenizer;
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="32" href="#32">32</a>  <em class="jxr_javadoccomment"> * Matches mail where the sender is contained in a configurable list.</em>
+<a name="33" href="#33">33</a>  <em class="jxr_javadoccomment"> * @version 1.0.0, 24/04/1999</em>
+<a name="34" href="#34">34</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="35" href="#35">35</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/james/transport/matchers/SenderIs.html">SenderIs</a> <strong class="jxr_keyword">extends</strong> GenericMatcher {
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>      <strong class="jxr_keyword">private</strong> Collection senders;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> init() <strong class="jxr_keyword">throws</strong> javax.mail.MessagingException {
+<a name="40" href="#40">40</a>          StringTokenizer st = <strong class="jxr_keyword">new</strong> StringTokenizer(getCondition(), <span class="jxr_string">", \t"</span>, false);
+<a name="41" href="#41">41</a>          senders = <strong class="jxr_keyword">new</strong> java.util.HashSet();
+<a name="42" href="#42">42</a>          <strong class="jxr_keyword">while</strong> (st.hasMoreTokens()) {
+<a name="43" href="#43">43</a>              senders.add(<strong class="jxr_keyword">new</strong> MailAddress(st.nextToken()));
+<a name="44" href="#44">44</a>          }
+<a name="45" href="#45">45</a>      }
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>      <strong class="jxr_keyword">public</strong> Collection match(Mail mail) {
+<a name="48" href="#48">48</a>          <strong class="jxr_keyword">if</strong> (senders.contains(mail.getSender())) {
+<a name="49" href="#49">49</a>              <strong class="jxr_keyword">return</strong> mail.getRecipients();
+<a name="50" href="#50">50</a>          } <strong class="jxr_keyword">else</strong> {
+<a name="51" href="#51">51</a>              <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="52" href="#52">52</a>          }
+<a name="53" href="#53">53</a>      }
+<a name="54" href="#54">54</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderIsNull.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderIsNull.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderIsNull.html (added)
+++ james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SenderIsNull.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,61 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>SenderIsNull xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/james/transport/matchers/SenderIsNull.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_javadoccomment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em class="jxr_javadoccomment"> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em class="jxr_javadoccomment"> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em class="jxr_javadoccomment"> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">package</strong> org.apache.james.transport.matchers;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.GenericMatcher;
+<a name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.Mail;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> java.util.Collection;
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="30" href="#30">30</a>  <em class="jxr_javadoccomment"> * &lt;P&gt;Matches mails that are sent by a null sender.&lt;/P&gt;</em>
+<a name="31" href="#31">31</a>  <em class="jxr_javadoccomment"> * &lt;PRE&gt;&lt;CODE&gt;</em>
+<a name="32" href="#32">32</a>  <em class="jxr_javadoccomment"> * &amp;lt;mailet match=&amp;quot;SenderIsNull&amp;quot; class=&amp;quot;&amp;lt;any-class&amp;gt;&amp;quot;&amp;gt;</em>
+<a name="33" href="#33">33</a>  <em class="jxr_javadoccomment"> * &lt;/CODE&gt;&lt;/PRE&gt;</em>
+<a name="34" href="#34">34</a>  <em class="jxr_javadoccomment"> *</em>
+<a name="35" href="#35">35</a>  <em class="jxr_javadoccomment"> * @version CVS $Revision: 426007 $ $Date: 2006-07-27 09:52:06 +0100 (Thu, 27 Jul 2006) $</em>
+<a name="36" href="#36">36</a>  <em class="jxr_javadoccomment"> * @since 2.2.0</em>
+<a name="37" href="#37">37</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="38" href="#38">38</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/james/transport/matchers/SenderIsNull.html">SenderIsNull</a> <strong class="jxr_keyword">extends</strong> GenericMatcher {
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>      <strong class="jxr_keyword">public</strong> Collection match(Mail mail) {
+<a name="41" href="#41">41</a>          <strong class="jxr_keyword">if</strong> (mail.getSender() == <strong class="jxr_keyword">null</strong>) {
+<a name="42" href="#42">42</a>              <strong class="jxr_keyword">return</strong> mail.getRecipients();
+<a name="43" href="#43">43</a>          } <strong class="jxr_keyword">else</strong> {
+<a name="44" href="#44">44</a>              <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="45" href="#45">45</a>          }
+<a name="46" href="#46">46</a>      }
+<a name="47" href="#47">47</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SizeGreaterThan.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SizeGreaterThan.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SizeGreaterThan.html (added)
+++ james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SizeGreaterThan.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,89 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>SizeGreaterThan xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/james/transport/matchers/SizeGreaterThan.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_javadoccomment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em class="jxr_javadoccomment"> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em class="jxr_javadoccomment"> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em class="jxr_javadoccomment"> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">package</strong> org.apache.james.transport.matchers;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.GenericMatcher;
+<a name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.Mail;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> javax.mail.MessagingException;
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> java.util.Collection;
+<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> java.util.Locale;
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="32" href="#32">32</a>  <em class="jxr_javadoccomment"> * Checks whether the message (entire message, not just content) is greater</em>
+<a name="33" href="#33">33</a>  <em class="jxr_javadoccomment"> * than a certain number of bytes.  You can use 'k' and 'm' as optional postfixes.</em>
+<a name="34" href="#34">34</a>  <em class="jxr_javadoccomment"> * In other words, "1m" is the same as writing "1024k", which is the same as</em>
+<a name="35" href="#35">35</a>  <em class="jxr_javadoccomment"> * "1048576".</em>
+<a name="36" href="#36">36</a>  <em class="jxr_javadoccomment"> *</em>
+<a name="37" href="#37">37</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="38" href="#38">38</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/james/transport/matchers/SizeGreaterThan.html">SizeGreaterThan</a> <strong class="jxr_keyword">extends</strong> GenericMatcher {
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>      <strong class="jxr_keyword">int</strong> cutoff = 0;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> init() <strong class="jxr_keyword">throws</strong> MessagingException {
+<a name="43" href="#43">43</a>          String amount = getCondition();
+<a name="44" href="#44">44</a>          
+<a name="45" href="#45">45</a>          <strong class="jxr_keyword">if</strong> (amount != <strong class="jxr_keyword">null</strong>) {
+<a name="46" href="#46">46</a>              amount = amount.trim().toLowerCase(Locale.US);
+<a name="47" href="#47">47</a>          } <strong class="jxr_keyword">else</strong> {
+<a name="48" href="#48">48</a>              <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> MessagingException(<span class="jxr_string">"Please configure an amount"</span>);
+<a name="49" href="#49">49</a>          }
+<a name="50" href="#50">50</a>          <strong class="jxr_keyword">try</strong> {
+<a name="51" href="#51">51</a>              <strong class="jxr_keyword">if</strong> (amount.endsWith(<span class="jxr_string">"k"</span>)) {
+<a name="52" href="#52">52</a>                  amount = amount.substring(0, amount.length() - 1);
+<a name="53" href="#53">53</a>                  cutoff = Integer.parseInt(amount) * 1024;
+<a name="54" href="#54">54</a>              } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (amount.endsWith(<span class="jxr_string">"m"</span>)) {
+<a name="55" href="#55">55</a>                  amount = amount.substring(0, amount.length() - 1);
+<a name="56" href="#56">56</a>                  cutoff = Integer.parseInt(amount) * 1024 * 1024;
+<a name="57" href="#57">57</a>              } <strong class="jxr_keyword">else</strong> {
+<a name="58" href="#58">58</a>                  cutoff = Integer.parseInt(amount);
+<a name="59" href="#59">59</a>              }
+<a name="60" href="#60">60</a>          } <strong class="jxr_keyword">catch</strong> (NumberFormatException e) {
+<a name="61" href="#61">61</a>              <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> MessagingException(<span class="jxr_string">"Invalid amount: "</span> + amount);
+<a name="62" href="#62">62</a>          }
+<a name="63" href="#63">63</a>      }
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="66" href="#66">66</a>  <em class="jxr_javadoccomment">     * @see org.apache.mailet.GenericMatcher#match(org.apache.mailet.Mail)</em>
+<a name="67" href="#67">67</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="68" href="#68">68</a>      <strong class="jxr_keyword">public</strong> Collection match(Mail mail) <strong class="jxr_keyword">throws</strong> MessagingException {
+<a name="69" href="#69">69</a>          <strong class="jxr_keyword">if</strong> (mail.getMessageSize() &gt; cutoff) {
+<a name="70" href="#70">70</a>              <strong class="jxr_keyword">return</strong> mail.getRecipients();
+<a name="71" href="#71">71</a>          } <strong class="jxr_keyword">else</strong> {
+<a name="72" href="#72">72</a>              <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="73" href="#73">73</a>          }
+<a name="74" href="#74">74</a>      }
+<a name="75" href="#75">75</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SubjectIs.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SubjectIs.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SubjectIs.html (added)
+++ james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SubjectIs.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,57 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>SubjectIs xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/james/transport/matchers/SubjectIs.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_javadoccomment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em class="jxr_javadoccomment"> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em class="jxr_javadoccomment"> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em class="jxr_javadoccomment"> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">package</strong> org.apache.james.transport.matchers;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.GenericMatcher;
+<a name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.Mail;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> javax.mail.internet.MimeMessage;
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> java.util.Collection;
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="31" href="#31">31</a>  <em class="jxr_javadoccomment"> * Matches mail where the subject is contained in a configurable list.</em>
+<a name="32" href="#32">32</a>  <em class="jxr_javadoccomment"> * @version 1.0.0, 1/5/2000</em>
+<a name="33" href="#33">33</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="34" href="#34">34</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/james/transport/matchers/SubjectIs.html">SubjectIs</a> <strong class="jxr_keyword">extends</strong> GenericMatcher {
+<a name="35" href="#35">35</a>      <strong class="jxr_keyword">public</strong> Collection match(Mail mail) <strong class="jxr_keyword">throws</strong> javax.mail.MessagingException {
+<a name="36" href="#36">36</a>          MimeMessage mm = mail.getMessage();
+<a name="37" href="#37">37</a>          String subject = mm.getSubject();
+<a name="38" href="#38">38</a>          <strong class="jxr_keyword">if</strong> (subject != <strong class="jxr_keyword">null</strong> &amp;&amp; subject.equals(getCondition())) {
+<a name="39" href="#39">39</a>              <strong class="jxr_keyword">return</strong> mail.getRecipients();
+<a name="40" href="#40">40</a>          }
+<a name="41" href="#41">41</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="42" href="#42">42</a>      }
+<a name="43" href="#43">43</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SubjectStartsWith.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SubjectStartsWith.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SubjectStartsWith.html (added)
+++ james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/SubjectStartsWith.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,59 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>SubjectStartsWith xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/james/transport/matchers/SubjectStartsWith.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_javadoccomment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em class="jxr_javadoccomment"> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em class="jxr_javadoccomment"> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em class="jxr_javadoccomment"> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">package</strong> org.apache.james.transport.matchers;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.GenericMatcher;
+<a name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.Mail;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> javax.mail.MessagingException;
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> javax.mail.internet.MimeMessage;
+<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> java.util.Collection;
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="32" href="#32">32</a>  <em class="jxr_javadoccomment"> * Matches mail where the subject starts with a given phrase.</em>
+<a name="33" href="#33">33</a>  <em class="jxr_javadoccomment"> * @version 1.0.0, 1/5/2000</em>
+<a name="34" href="#34">34</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="35" href="#35">35</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/james/transport/matchers/SubjectStartsWith.html">SubjectStartsWith</a> <strong class="jxr_keyword">extends</strong> GenericMatcher {
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>      <strong class="jxr_keyword">public</strong> Collection match(Mail mail) <strong class="jxr_keyword">throws</strong> MessagingException {
+<a name="38" href="#38">38</a>          MimeMessage mm = mail.getMessage();
+<a name="39" href="#39">39</a>          String subject = mm.getSubject();
+<a name="40" href="#40">40</a>          <strong class="jxr_keyword">if</strong> (subject != <strong class="jxr_keyword">null</strong> &amp;&amp; subject.startsWith(getCondition())) {
+<a name="41" href="#41">41</a>              <strong class="jxr_keyword">return</strong> mail.getRecipients();
+<a name="42" href="#42">42</a>          }
+<a name="43" href="#43">43</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="44" href="#44">44</a>      }
+<a name="45" href="#45">45</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/UserIs.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/UserIs.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/UserIs.html (added)
+++ james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/UserIs.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,63 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>UserIs xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/james/transport/matchers/UserIs.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em class="jxr_javadoccomment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em class="jxr_javadoccomment"> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em class="jxr_javadoccomment"> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em class="jxr_javadoccomment"> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em class="jxr_javadoccomment"> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong class="jxr_keyword">package</strong> org.apache.james.transport.matchers;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.GenericRecipientMatcher;
+<a name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.mailet.MailAddress;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> java.util.StringTokenizer;
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> java.util.Vector;
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="31" href="#31">31</a>  <em class="jxr_javadoccomment"> * Matches mail where the user is contained in a configurable list.</em>
+<a name="32" href="#32">32</a>  <em class="jxr_javadoccomment"> * @version 1.0.0, 24/04/1999</em>
+<a name="33" href="#33">33</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="34" href="#34">34</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/james/transport/matchers/UserIs.html">UserIs</a> <strong class="jxr_keyword">extends</strong> GenericRecipientMatcher {
+<a name="35" href="#35">35</a>      Vector users = <strong class="jxr_keyword">null</strong>;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> init() {
+<a name="38" href="#38">38</a>          StringTokenizer st = <strong class="jxr_keyword">new</strong> StringTokenizer(getCondition(), <span class="jxr_string">", "</span>, false);
+<a name="39" href="#39">39</a>          users = <strong class="jxr_keyword">new</strong> Vector();
+<a name="40" href="#40">40</a>          <strong class="jxr_keyword">while</strong> (st.hasMoreTokens()) {
+<a name="41" href="#41">41</a>              users.add(st.nextToken());
+<a name="42" href="#42">42</a>          }
+<a name="43" href="#43">43</a>      }
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> matchRecipient(MailAddress recipient) {
+<a name="46" href="#46">46</a>          <strong class="jxr_keyword">return</strong> users.contains(recipient.getUser());
+<a name="47" href="#47">47</a>      }
+<a name="48" href="#48">48</a>  }
+<a name="49" href="#49">49</a>  
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/package-frame.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/package-frame.html (added)
+++ james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/package-frame.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,111 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+		<title>Apache JAMES Standard Mailets 1.0-SNAPSHOT Reference Package org.apache.james.transport.matchers</title>
+		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
+	</head>
+	<body>
+
+		<h3>
+        	<a href="package-summary.html" target="classFrame">org.apache.james.transport.matchers</a>
+      	</h3>
+
+      	<h3>Classes</h3>
+
+      	<ul>
+      		          	<li>
+            	<a href="AbstractQuotaMatcher.html" target="classFrame">AbstractQuotaMatcher</a>
+          	</li>
+          	          	<li>
+            	<a href="All.html" target="classFrame">All</a>
+          	</li>
+          	          	<li>
+            	<a href="AttachmentFileNameIs.html" target="classFrame">AttachmentFileNameIs</a>
+          	</li>
+          	          	<li>
+            	<a href="CommandForListserv.html" target="classFrame">CommandForListserv</a>
+          	</li>
+          	          	<li>
+            	<a href="CommandListservMatcher.html" target="classFrame">CommandListservMatcher</a>
+          	</li>
+          	          	<li>
+            	<a href="CompareNumericHeaderValue.html" target="classFrame">CompareNumericHeaderValue</a>
+          	</li>
+          	          	<li>
+            	<a href="FetchedFrom.html" target="classFrame">FetchedFrom</a>
+          	</li>
+          	          	<li>
+            	<a href="HasAttachment.html" target="classFrame">HasAttachment</a>
+          	</li>
+          	          	<li>
+            	<a href="HasHabeasWarrantMark.html" target="classFrame">HasHabeasWarrantMark</a>
+          	</li>
+          	          	<li>
+            	<a href="HasHeader.html" target="classFrame">HasHeader</a>
+          	</li>
+          	          	<li>
+            	<a href="HasMailAttribute.html" target="classFrame">HasMailAttribute</a>
+          	</li>
+          	          	<li>
+            	<a href="HasMailAttributeWithValue.html" target="classFrame">HasMailAttributeWithValue</a>
+          	</li>
+          	          	<li>
+            	<a href="HostIs.html" target="classFrame">HostIs</a>
+          	</li>
+          	          	<li>
+            	<a href="HostIsLocal.html" target="classFrame">HostIsLocal</a>
+          	</li>
+          	          	<li>
+            	<a href="IsSingleRecipient.html" target="classFrame">IsSingleRecipient</a>
+          	</li>
+          	          	<li>
+            	<a href="AttachmentFileNameIs.html" target="classFrame">Mask</a>
+          	</li>
+          	          	<li>
+            	<a href="RecipientIs.html" target="classFrame">RecipientIs</a>
+          	</li>
+          	          	<li>
+            	<a href="RecipientIsLocal.html" target="classFrame">RecipientIsLocal</a>
+          	</li>
+          	          	<li>
+            	<a href="RelayLimit.html" target="classFrame">RelayLimit</a>
+          	</li>
+          	          	<li>
+            	<a href="SMTPAuthSuccessful.html" target="classFrame">SMTPAuthSuccessful</a>
+          	</li>
+          	          	<li>
+            	<a href="SMTPAuthUserIs.html" target="classFrame">SMTPAuthUserIs</a>
+          	</li>
+          	          	<li>
+            	<a href="SMTPIsAuthNetwork.html" target="classFrame">SMTPIsAuthNetwork</a>
+          	</li>
+          	          	<li>
+            	<a href="SenderHostIs.html" target="classFrame">SenderHostIs</a>
+          	</li>
+          	          	<li>
+            	<a href="SenderHostIsLocal.html" target="classFrame">SenderHostIsLocal</a>
+          	</li>
+          	          	<li>
+            	<a href="SenderIs.html" target="classFrame">SenderIs</a>
+          	</li>
+          	          	<li>
+            	<a href="SenderIsNull.html" target="classFrame">SenderIsNull</a>
+          	</li>
+          	          	<li>
+            	<a href="SizeGreaterThan.html" target="classFrame">SizeGreaterThan</a>
+          	</li>
+          	          	<li>
+            	<a href="SubjectIs.html" target="classFrame">SubjectIs</a>
+          	</li>
+          	          	<li>
+            	<a href="SubjectStartsWith.html" target="classFrame">SubjectStartsWith</a>
+          	</li>
+          	          	<li>
+            	<a href="UserIs.html" target="classFrame">UserIs</a>
+          	</li>
+          	      	</ul>
+
+	</body>
+</html>
\ No newline at end of file

Added: james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/package-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/package-summary.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/package-summary.html (added)
+++ james/site/trunk/www/mailet/standard/xref/org/apache/james/transport/matchers/package-summary.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,212 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+		<title>Apache JAMES Standard Mailets 1.0-SNAPSHOT Reference Package org.apache.james.transport.matchers</title>
+		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
+	</head>
+	<body>
+		      	<div class="overview">
+        	<ul>
+          		<li>
+            		<a href="../../../../../overview-summary.html">Overview</a>
+          		</li>
+          		<li class="selected">Package</li>
+        	</ul>
+      	</div>
+      	<div class="framenoframe">
+        	<ul>
+          		<li>
+            		<a href="../../../../../index.html" target="_top">FRAMES</a>
+          		</li>
+          		<li>
+            		<a href="package-summary.html" target="_top">NO FRAMES</a>
+          		</li>
+        	</ul>
+      	</div>
+		
+		      	<h2>Package org.apache.james.transport.matchers</h2>
+
+		<table class="summary">
+        	<thead>
+          		<tr>
+            		<th>Class Summary</th>
+          		</tr>
+        	</thead>
+        	<tbody>
+        		            	<tr>
+              		<td>
+                		<a href="AbstractQuotaMatcher.html" target="classFrame">AbstractQuotaMatcher</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="All.html" target="classFrame">All</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="AttachmentFileNameIs.html" target="classFrame">AttachmentFileNameIs</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="CommandForListserv.html" target="classFrame">CommandForListserv</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="CommandListservMatcher.html" target="classFrame">CommandListservMatcher</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="CompareNumericHeaderValue.html" target="classFrame">CompareNumericHeaderValue</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="FetchedFrom.html" target="classFrame">FetchedFrom</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="HasAttachment.html" target="classFrame">HasAttachment</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="HasHabeasWarrantMark.html" target="classFrame">HasHabeasWarrantMark</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="HasHeader.html" target="classFrame">HasHeader</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="HasMailAttribute.html" target="classFrame">HasMailAttribute</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="HasMailAttributeWithValue.html" target="classFrame">HasMailAttributeWithValue</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="HostIs.html" target="classFrame">HostIs</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="HostIsLocal.html" target="classFrame">HostIsLocal</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="IsSingleRecipient.html" target="classFrame">IsSingleRecipient</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="AttachmentFileNameIs.html" target="classFrame">Mask</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="RecipientIs.html" target="classFrame">RecipientIs</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="RecipientIsLocal.html" target="classFrame">RecipientIsLocal</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="RelayLimit.html" target="classFrame">RelayLimit</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SMTPAuthSuccessful.html" target="classFrame">SMTPAuthSuccessful</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SMTPAuthUserIs.html" target="classFrame">SMTPAuthUserIs</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SMTPIsAuthNetwork.html" target="classFrame">SMTPIsAuthNetwork</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SenderHostIs.html" target="classFrame">SenderHostIs</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SenderHostIsLocal.html" target="classFrame">SenderHostIsLocal</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SenderIs.html" target="classFrame">SenderIs</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SenderIsNull.html" target="classFrame">SenderIsNull</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SizeGreaterThan.html" target="classFrame">SizeGreaterThan</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SubjectIs.html" target="classFrame">SubjectIs</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SubjectStartsWith.html" target="classFrame">SubjectStartsWith</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="UserIs.html" target="classFrame">UserIs</a>
+              		</td>
+            	</tr>
+				        	</tbody>
+      	</table>
+		
+		      	<div class="overview">
+        	<ul>
+          		<li>
+            		<a href="../../../../../overview-summary.html">Overview</a>
+          		</li>
+          		<li class="selected">Package</li>
+        	</ul>
+      	</div>
+      	<div class="framenoframe">
+        	<ul>
+          		<li>
+            		<a href="../../../../../index.html" target="_top">FRAMES</a>
+          		</li>
+          		<li>
+            		<a href="package-summary.html" target="_top">NO FRAMES</a>
+          		</li>
+        	</ul>
+      	</div>
+				<hr />
+		Copyright &copy; 2008 The Apache Software Foundation. All Rights Reserved.
+	</body>
+</html>
\ No newline at end of file

Added: james/site/trunk/www/mailet/standard/xref/overview-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/overview-frame.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/overview-frame.html (added)
+++ james/site/trunk/www/mailet/standard/xref/overview-frame.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,31 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+		<title>Apache JAMES Standard Mailets 1.0-SNAPSHOT Reference</title>
+		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
+	</head>
+	<body>
+
+		<h3>
+			<a href="allclasses-frame.html" target="packageFrame">All Classes</a>
+		</h3>
+
+		<h3>Packages</h3>
+
+		<ul>
+						<li>
+				<a href="org/apache/james/transport/mailets/package-frame.html" target="packageFrame">org.apache.james.transport.mailets</a>
+			</li>
+						<li>
+				<a href="org/apache/james/transport/mailets/debug/package-frame.html" target="packageFrame">org.apache.james.transport.mailets.debug</a>
+			</li>
+						<li>
+				<a href="org/apache/james/transport/matchers/package-frame.html" target="packageFrame">org.apache.james.transport.matchers</a>
+			</li>
+					</ul>
+
+	</body>
+</html>
+

Added: james/site/trunk/www/mailet/standard/xref/overview-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/overview-summary.html?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/overview-summary.html (added)
+++ james/site/trunk/www/mailet/standard/xref/overview-summary.html Mon Aug 25 12:47:08 2008
@@ -0,0 +1,74 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+		<title>Apache JAMES Standard Mailets 1.0-SNAPSHOT Reference</title>
+		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
+	</head>
+	<body>
+				<div class="overview">
+			<ul>
+				<li class="selected">Overview</li>
+				<li>Package</li>
+			</ul>
+		</div>
+		<div class="framenoframe">
+			<ul>
+				<li>
+					<a href="index.html" target="_top">FRAMES</a>
+				</li>
+				<li>
+    	        	<a href="overview-summary.html" target="_top">NO FRAMES</a>
+        	  	</li>
+	        </ul>
+      	</div>
+		
+		      	<h2>Apache JAMES Standard Mailets 1.0-SNAPSHOT Reference</h2>
+
+		<table class="summary">
+        	<thead>
+          		<tr>
+            		<th>Packages</th>
+          		</tr>
+        	</thead>
+        	<tbody>
+    	    	            	<tr>
+              		<td>
+                		<a href="org/apache/james/transport/mailets/package-summary.html">org.apache.james.transport.mailets</a>
+              		</td>
+            	</tr>
+	          	            	<tr>
+              		<td>
+                		<a href="org/apache/james/transport/mailets/debug/package-summary.html">org.apache.james.transport.mailets.debug</a>
+              		</td>
+            	</tr>
+	          	            	<tr>
+              		<td>
+                		<a href="org/apache/james/transport/matchers/package-summary.html">org.apache.james.transport.matchers</a>
+              		</td>
+            	</tr>
+	          	        	</tbody>
+      	</table>
+		
+				<div class="overview">
+			<ul>
+				<li class="selected">Overview</li>
+				<li>Package</li>
+			</ul>
+		</div>
+		<div class="framenoframe">
+			<ul>
+				<li>
+					<a href="index.html" target="_top">FRAMES</a>
+				</li>
+				<li>
+    	        	<a href="overview-summary.html" target="_top">NO FRAMES</a>
+        	  	</li>
+	        </ul>
+      	</div>
+		
+		<hr />
+		Copyright &copy; 2008 The Apache Software Foundation. All Rights Reserved.
+	</body>
+</html>
\ No newline at end of file

Added: james/site/trunk/www/mailet/standard/xref/stylesheet.css
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mailet/standard/xref/stylesheet.css?rev=688852&view=auto
==============================================================================
--- james/site/trunk/www/mailet/standard/xref/stylesheet.css (added)
+++ james/site/trunk/www/mailet/standard/xref/stylesheet.css Mon Aug 25 12:47:08 2008
@@ -0,0 +1,116 @@
+/* Javadoc style sheet */
+/* Define colors, fonts and other style attributes here to override the defaults  */
+body {
+    background-color: #fff;
+    font-family: Arial, Helvetica, sans-serif;
+}
+
+a:link {
+    color: #00f;
+}
+a:visited {
+    color: #00a;
+}
+
+a:active, a:hover {
+    color: #f30 !important;
+}
+
+ul, li {
+    list-style-type:none;
+    margin:0;
+    padding:0;
+}
+
+table td {
+    padding: 3px;
+    border: 1px solid #000;
+}
+table {
+    width:100%;
+    border: 1px solid #000;
+    border-collapse: collapse;
+}
+
+div.overview {
+    background-color:#ddd;
+    padding: 4px 4px 4px 0;
+}
+div.overview li, div.framenoframe li {
+    display: inline;
+}
+div.framenoframe {
+    text-align: center;
+    font-size: x-small;
+}
+div.framenoframe li {
+    margin: 0 3px 0 3px;
+}
+div.overview li {
+    margin:3px 3px 0 3px;
+    padding: 4px;
+}
+li.selected {
+    background-color:#888;
+    color: #fff;
+    font-weight: bold;
+}
+
+table.summary {
+    margin-bottom: 20px;
+}
+table.summary td, table.summary th {
+    font-weight: bold;
+    text-align: left;
+    padding: 3px;
+}
+table.summary th {
+    background-color:#036;
+    color: #fff;
+}
+table.summary td {
+    background-color:#eee;
+    border: 1px solid black;
+}
+
+em {
+    color: #A00;
+}
+em.comment {
+    color: #390;
+}
+.string {
+    color: #009;
+}
+div#footer {
+    text-align:center;
+}
+#overview {
+    padding:2px;
+}
+
+hr {
+    height: 1px;
+    color: #000;
+}
+
+/* JXR style sheet */
+.jxr_comment
+{
+    color: #390;
+}
+
+.jxr_javadoccomment
+{
+    color: #A00;
+}
+
+.jxr_string
+{
+    color: #009;
+}
+
+.jxr_keyword
+{
+    color: #000;
+}