-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use single connection to sync all mailboxes #10117
Conversation
@@ -109,6 +109,10 @@ public function syncAccount(Account $account, | |||
$snoozeMailboxId = $account->getMailAccount()->getSnoozeMailboxId(); | |||
$sentMailboxId = $account->getMailAccount()->getSentMailboxId(); | |||
$trashRetentionDays = $account->getMailAccount()->getTrashRetentionDays(); | |||
// construct imap client and perform initial connection | |||
$client = $this->clientFactory->getClient($account); | |||
$client->login(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This …
Address the reviewer comments, otherwise this is showing full affect for a CLI sync of an account with 16 mailboxes. Before: 16 logins https://blackfire.io/profiles/compare/3e0e51dc-6586-40a6-9106-6c3625f41b7b/graph 👍 |
/backport to stable4.0 |
/backport to stable3.7 |
Signed-off-by: SebastianKrupinski <[email protected]>
beef438
to
57389ba
Compare
the comments, duplicating the code, were removed
Resolves: #10098