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 2007/01/08 14:18:23 UTC
svn commit: r494058 - in /james/server/branches/v2.3/src:
conf/james-config.xml
java/org/apache/james/transport/matchers/AbstractStorageQuota.java
java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java
Author: norman
Date: Mon Jan 8 05:18:22 2007
New Revision: 494058
URL: http://svn.apache.org/viewvc?view=rev&rev=494058
Log:
Merge fixes for JAMES-718 (Mark Quota support as experimental)
Modified:
james/server/branches/v2.3/src/conf/james-config.xml
james/server/branches/v2.3/src/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
james/server/branches/v2.3/src/java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java
Modified: james/server/branches/v2.3/src/conf/james-config.xml
URL: http://svn.apache.org/viewvc/james/server/branches/v2.3/src/conf/james-config.xml?view=diff&rev=494058&r1=494057&r2=494058
==============================================================================
--- james/server/branches/v2.3/src/conf/james-config.xml (original)
+++ james/server/branches/v2.3/src/conf/james-config.xml Mon Jan 8 05:18:22 2007
@@ -484,8 +484,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/branches/v2.3/src/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
URL: http://svn.apache.org/viewvc/james/server/branches/v2.3/src/java/org/apache/james/transport/matchers/AbstractStorageQuota.java?view=diff&rev=494058&r1=494057&r2=494058
==============================================================================
--- james/server/branches/v2.3/src/java/org/apache/james/transport/matchers/AbstractStorageQuota.java (original)
+++ james/server/branches/v2.3/src/java/org/apache/james/transport/matchers/AbstractStorageQuota.java Mon Jan 8 05:18:22 2007
@@ -35,10 +35,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/branches/v2.3/src/java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java
URL: http://svn.apache.org/viewvc/james/server/branches/v2.3/src/java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java?view=diff&rev=494058&r1=494057&r2=494058
==============================================================================
--- james/server/branches/v2.3/src/java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java (original)
+++ james/server/branches/v2.3/src/java/org/apache/james/transport/matchers/RecipientIsOverFixedQuota.java Mon Jan 8 05:18:22 2007
@@ -26,7 +26,7 @@
import java.util.Locale;
/**
- * <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.
@@ -47,7 +47,9 @@
* .
* </processor>
* </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