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(