This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 2034cc57e535c4e17b0e69c965c46ce39ca69017
Author: Benoit Tellier <[email protected]>
AuthorDate: Thu Apr 4 13:43:01 2019 +0700

    JAMES-2703 Deprecating old quota matchers
---
 .../org/apache/james/transport/matchers/AbstractQuotaMatcher.java    | 5 +++++
 .../org/apache/james/transport/matchers/AbstractStorageQuota.java    | 5 +++++
 .../java/org/apache/james/transport/matchers/MailboxQuotaFixed.java  | 5 +++++
 3 files changed, 15 insertions(+)

diff --git 
a/mailet/standard/src/main/java/org/apache/james/transport/matchers/AbstractQuotaMatcher.java
 
b/mailet/standard/src/main/java/org/apache/james/transport/matchers/AbstractQuotaMatcher.java
index 219fadd..9ea2ad4 100755
--- 
a/mailet/standard/src/main/java/org/apache/james/transport/matchers/AbstractQuotaMatcher.java
+++ 
b/mailet/standard/src/main/java/org/apache/james/transport/matchers/AbstractQuotaMatcher.java
@@ -40,8 +40,13 @@ import org.slf4j.LoggerFactory;
  *
  * @version CVS $Revision$ $Date$
  * @since 2.2.0
+ *
+ * @deprecated JAMES-2703 This class is deprecated and will be removed 
straight after upcoming James 3.4.0 release
+ *
+ * Please use IsOverQuota which relies on mailbox quota apis and avoids 
scanning
  */
 @Experimental
+@Deprecated
 public abstract class AbstractQuotaMatcher extends GenericMatcher {
     private static final Logger LOGGER = 
LoggerFactory.getLogger(AbstractQuotaMatcher.class);
 
diff --git 
a/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
 
b/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
index a384396..7674706 100755
--- 
a/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
+++ 
b/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
@@ -62,8 +62,13 @@ import org.apache.mailet.MailetContext;
  * </p>
  * 
  * @since 2.2.0
+ *
+ * @deprecated JAMES-2703 This class is deprecated and will be removed 
straight after upcoming James 3.4.0 release
+ *
+ * Please use IsOverQuota which relies on mailbox quota apis and avoids 
scanning
  */
 @Experimental
+@Deprecated
 public abstract class AbstractStorageQuota extends AbstractQuotaMatcher {
 
     private MailboxManager manager;
diff --git 
a/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/MailboxQuotaFixed.java
 
b/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/MailboxQuotaFixed.java
index c4415fe..8915959 100644
--- 
a/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/MailboxQuotaFixed.java
+++ 
b/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/MailboxQuotaFixed.java
@@ -29,8 +29,13 @@ import org.apache.mailet.Matcher;
  * Matcher which can be used to set a quota for users Mailbox. This
  * {@link Matcher} need to recalculate the used space of users mailbox on every
  * call. So use it with caution!
+ *
+ * @deprecated JAMES-2703 This class is deprecated and will be removed 
straight after upcoming James 3.4.0 release
+ *
+ * Please use IsOverQuota which relies on mailbox quota apis and avoids 
scanning
  */
 @Experimental
+@Deprecated
 public class MailboxQuotaFixed extends AbstractStorageQuota {
 
     @Override


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to