chibenwa commented on code in PR #2836:
URL: https://github.com/apache/james-project/pull/2836#discussion_r2425855070


##########
server/protocols/webadmin/webadmin-jmap/src/main/java/org/apache/james/webadmin/data/jmap/RunRulesOnMailboxService.java:
##########
@@ -49,23 +51,39 @@
 import org.slf4j.LoggerFactory;
 
 import com.github.fge.lambdas.Throwing;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableList;
 
 import reactor.core.publisher.Flux;
 import reactor.core.publisher.Mono;
+import reactor.core.publisher.SynchronousSink;
 
 public class RunRulesOnMailboxService {
+    public static class TooManyAppliedActionsException extends 
RuntimeException {
+    }
+
     private static final Logger LOGGER = 
LoggerFactory.getLogger(RunRulesOnMailboxService.class);
+    private static final int MAX_ACTIONS_PER_MAILBOX = 
Optional.ofNullable(System.getProperty("james.rules.triage.max.actions.per.mailbox"))
+        .map(Integer::valueOf)
+        .orElse(50000);

Review Comment:
   ```suggestion
           .orElse(25000);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to