Skip to content

Commit

Permalink
fixup! fix(sync): force full sync when the server reports QRESYNC
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny committed Oct 26, 2023
1 parent 624c826 commit 346560f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Service/Sync/ImapToDbSynchronizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

1 comment on commit 346560f

@kruzhkov
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Horde_Imap_Client_Exception: Too many auth attempts
/var/www/html/custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php - line 853:
OCA\Mail\IMAP\ImapClientRateLimitingDecorator->_login("*** sensiti ... ")
/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php - line 222:
Horde_Imap_Client_Base->login("
** sensiti ... ")
/var/www/html/custom_apps/mail/lib/Service/Sync/SyncService.php - line 120:
OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync("
** sensiti ... ")
/var/www/html/custom_apps/mail/lib/Controller/MailboxesController.php - line 153:
OCA\Mail\Service\Sync\SyncService->syncMailbox("
** sensiti ... ")
/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 230:
OCA\Mail\Controller\MailboxesController->sync("
** sensiti ... *")
/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 137:
OC\AppFramework\Http\Dispatcher->executeController([ "OCA\Mail ... "], "sync")
/var/www/html/lib/private/AppFramework/App.php - line 183:
OC\AppFramework\Http\Dispatcher->dispatch([ "OCA\Mail ... "], "sync")
/var/www/html/lib/private/Route/Router.php - line 315:
OC\AppFramework\App::main("OCA\Mail\ ... r", "sync", [ "OC\AppFr ... "], [ "180","mail.mailboxes.sync"])
/var/www/html/lib/base.php - line 1068:
OC\Route\Router->match("/apps/mail/ ... c")
/var/www/html/index.php - line 36:
OC::handleRequest()

Please sign in to comment.