diff --git a/lib/IMAP/Sync/Synchronizer.php b/lib/IMAP/Sync/Synchronizer.php index a95b2e85f2..aa87328586 100644 --- a/lib/IMAP/Sync/Synchronizer.php +++ b/lib/IMAP/Sync/Synchronizer.php @@ -81,6 +81,7 @@ public function sync(Horde_Imap_Client_Base $imapClient, throw $e; } + $logger->debug('Fetching new and changed messages after sync'); $newMessages = $this->messageMapper->findByIds($imapClient, $request->getMailbox(), $newUids, $userId); $nNew = count($newMessages); $logger->debug("Found {$nNew} new messages"); @@ -109,6 +110,8 @@ private function doCombinedSync(Horde_Imap_Client_Base $imapClient, 'criteria' => Horde_Imap_Client::SYNC_ALL, ]); + $logger->debug('Combined sync finished'); + return [ $syncData->newmsgsuids, $syncData->flagsuids,