mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
47f57a6c02
Summary: Previously if we got back a huge number of unknown UIDs from IMAP search we would try to sync all of them at once. This could lead to hanging the sync loop trying to download tons of messages. This diff limits the UIDs we're willing to sync per task to 500 and splits each task up into chunks of 25 messages so that we don't try to download all of them at once. If we need to sync more than 500 uids then at the end of the syncback task it will queue another task to run the next time the sync loop rolls back around. Test Plan: Run locally, verify that we gracefully handle various situations including cancelling during the syncback task, cancelling between syncback tasks, huge numbers of results, etc Reviewers: evan, spang, juan Reviewed By: juan Differential Revision: https://phab.nylas.com/D4142 |
||
---|---|---|
.. | ||
lib | ||
spec | ||
stylesheets | ||
package.json | ||
README.md |