From 346560fb616963e1fdc0180c796d037e87306eb8 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Thu, 26 Oct 2023 16:02:33 +0200 Subject: [PATCH] fixup! fix(sync): force full sync when the server reports QRESYNC --- lib/Service/Sync/ImapToDbSynchronizer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Service/Sync/ImapToDbSynchronizer.php b/lib/Service/Sync/ImapToDbSynchronizer.php index c9af2a1f2a..d33114d687 100644 --- a/lib/Service/Sync/ImapToDbSynchronizer.php +++ b/lib/Service/Sync/ImapToDbSynchronizer.php @@ -322,6 +322,10 @@ private function runInitialSync( $logger ); + // Need a client without a cache + $client->logout(); + $client = $this->clientFactory->getClient($account, false); + $highestKnownUid = $this->dbMapper->findHighestUid($mailbox); try { $imapMessages = $this->imapMapper->findAll(