-
Notifications
You must be signed in to change notification settings - Fork 263
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(imap): Chunk MessageMapper::findByIds by command length #8383
Conversation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
/backport to stable3.1 |
/backport to stable2.2 |
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.
I did some testing, sent mails, cleared caches of mailboxes and it worked fine. Anything else that should be tested specifically?
It's mainly the sync of a mailbox. E.g. by running |
$newMessages = $this->messageMapper->findByIds($imapClient, $request->getMailbox(), new Horde_Imap_Client_Ids($newUids), $userId); | ||
$changedMessages = $this->messageMapper->findByIds($imapClient, $request->getMailbox(), new Horde_Imap_Client_Ids($changedUids), $userId); | ||
$newMessages = $this->messageMapper->findByIds($imapClient, $request->getMailbox(), $newUids, $userId); | ||
$changedMessages = $this->messageMapper->findByIds($imapClient, $request->getMailbox(), $changedUids, $userId); |
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.
@st3iny this is the problematic call. You can mod getChangedMessageUids
to just return $request->getUids()
. It will fake that all messages changed and therefore trigger a re-fetch.
I did and the new code is run. |
Continuation of #8367