This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push: new a8154adf62 [FIX] Cleanup EmailQueryView when populating it. a8154adf62 is described below commit a8154adf62a273b58176af3043ac4a2fac083da1 Author: Benoit TELLIER <btell...@linagora.com> AuthorDate: Mon Jan 6 09:40:06 2025 +0100 [FIX] Cleanup EmailQueryView when populating it. --- .../org/apache/james/webadmin/data/jmap/EmailQueryViewPopulator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/protocols/webadmin/webadmin-jmap/src/main/java/org/apache/james/webadmin/data/jmap/EmailQueryViewPopulator.java b/server/protocols/webadmin/webadmin-jmap/src/main/java/org/apache/james/webadmin/data/jmap/EmailQueryViewPopulator.java index 3ca0007fa2..207dc4af8f 100644 --- a/server/protocols/webadmin/webadmin-jmap/src/main/java/org/apache/james/webadmin/data/jmap/EmailQueryViewPopulator.java +++ b/server/protocols/webadmin/webadmin-jmap/src/main/java/org/apache/james/webadmin/data/jmap/EmailQueryViewPopulator.java @@ -139,6 +139,7 @@ public class EmailQueryViewPopulator { private Flux<MessageResult> listUserMailboxMessages(Progress progress, MailboxSession session) { return listUsersMailboxes(session) .flatMap(mailboxMetadata -> retrieveMailbox(session, mailboxMetadata), MAILBOX_CONCURRENCY) + .concatMap(mailbox -> emailQueryView.delete(mailbox.getId()).thenReturn(mailbox)) .flatMap(Throwing.function(messageManager -> listAllMessages(messageManager, session)), MAILBOX_CONCURRENCY) .onErrorResume(MailboxException.class, e -> { LOGGER.error("JMAP emailQuery view re-computation aborted for {} as we failed listing user mailboxes", session.getUser(), e); --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org