james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r489081 - in /james/server/trunk/src: conf/james-config.xml java/org/apache/james/transport/matchers/AbstractStorageQuota.java java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java
Date Wed, 20 Dec 2006 13:08:40 GMT
Author: norman
Date: Wed Dec 20 05:08:39 2006
New Revision: 489081

URL: http://svn.apache.org/viewvc?view=rev&rev=489081
Log:
Mark quota matcher as experimental. See JAMES-718

Modified:
    james/server/trunk/src/conf/james-config.xml
    james/server/trunk/src/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
    james/server/trunk/src/java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java

Modified: james/server/trunk/src/conf/james-config.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/src/conf/james-config.xml?view=diff&rev=489081&r1=489080&r2=489081
==============================================================================
--- james/server/trunk/src/conf/james-config.xml (original)
+++ james/server/trunk/src/conf/james-config.xml Wed Dec 20 05:08:39 2006
@@ -587,8 +587,11 @@
          </mailet>
          -->
 
+         <!-- Experimental quota Matcher -->
+         <!-- This matcher need to calculate the mailbox size everytime it is called.
This can slow down things if there are many mails in -->
+         <!-- the mailbox. Some users also report big problems with the matcher if a JDBC
based mailrepository is used. -->
          <!-- Check if over quota -->
-         <!--
+         <!-- 
          <mailet match="RecipientIsOverFixedQuota=20M" class="Resend">
             <sender>postmaster</sender>
             <replyTo>postmaster</replyTo>

Modified: james/server/trunk/src/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/transport/matchers/AbstractStorageQuota.java?view=diff&rev=489081&r1=489080&r2=489081
==============================================================================
--- james/server/trunk/src/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
(original)
+++ james/server/trunk/src/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
Wed Dec 20 05:08:39 2006
@@ -38,10 +38,13 @@
 import java.util.Iterator;
 
 /**
- * <P>Abstract matcher checking whether a recipient has exceeded a maximum allowed
+ * <P>Experimental: Abstract matcher checking whether a recipient has exceeded a maximum
allowed
  * <I>storage</I> quota for messages standing in his inbox.</P>
  * <P>"Storage quota" at this level is still an abstraction whose specific interpretation
  * will be done by subclasses (e.g. could be specific for each user or common to all of them).</P>

+ *
+ * <P>This matcher need to calculate the mailbox size everytime it is called. This
can slow down things if there are many mails in
+ * the mailbox. Some users also report big problems with the matcher if a JDBC based mailrepository
is used. </P>
  *
  * @version CVS $Revision$ $Date$
  * @since 2.2.0

Modified: james/server/trunk/src/java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java?view=diff&rev=489081&r1=489080&r2=489081
==============================================================================
--- james/server/trunk/src/java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java
(original)
+++ james/server/trunk/src/java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java
Wed Dec 20 05:08:39 2006
@@ -29,7 +29,7 @@
 import org.apache.mailet.MailAddress;
 
 /**
- * <P>Checks whether a recipient has exceeded a maximum allowed quota for messages
+ * <P>Experimental: Checks whether a recipient has exceeded a maximum allowed quota
for messages
  * standing in his inbox. Such quota is <I>the same</I> for all users.</P>
  * <P>Will check if the total size of all his messages in the inbox are greater
  * than a certain number of bytes.  You can use 'k' and 'm' as optional postfixes.
@@ -50,7 +50,9 @@
  * .
  * &lt;/processor&gt;
  * </CODE></PRE>
- *
+ * 
+ * <P>This matcher need to calculate the mailbox size everytime it is called. This
can slow down things if there are many mails in
+ * the mailbox. Some users also report big problems with the matcher if a JDBC based mailrepository
is used. </P>
  * @version 1.0.0, 2003-05-11
  */
 



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


Mime
View raw message