From 7c2c8063c8f7a4abb57ceb5e351efe1e8fe6e882 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Mon, 26 Jun 2023 12:59:34 +0200 Subject: [PATCH] fix(sync): mailboxes not being synced due to short circuiting Signed-off-by: Richard Steinmetz --- lib/Service/Sync/ImapToDbSynchronizer.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Service/Sync/ImapToDbSynchronizer.php b/lib/Service/Sync/ImapToDbSynchronizer.php index 13a89de29c..abf99408d1 100644 --- a/lib/Service/Sync/ImapToDbSynchronizer.php +++ b/lib/Service/Sync/ImapToDbSynchronizer.php @@ -127,7 +127,7 @@ public function syncAccount(Account $account, continue; } $logger->debug("Syncing " . $mailbox->getId()); - $rebuildThreads = $rebuildThreads || $this->sync( + if ($this->sync( $account, $mailbox, $logger, @@ -135,7 +135,9 @@ public function syncAccount(Account $account, null, $force, true - ); + )) { + $rebuildThreads = true; + } } $this->dispatcher->dispatchTyped( new SynchronizationEvent(