mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-15 06:06:35 +08:00
d91992cdb8
Summary: Because we optimistically fetch UIDs by expanding a range without looking at the actual UIDs in the inbox and the actual space of UIDs with messages attached may be sparse due to message moves, we need to track how many messages we actually download during a range expansion and continue expanding the range if we haven't downloaded enough messages. If we reach a large gap where we download no messages at all during a batch, we pause and check the actual UID list for the folder for the next UID to download, as otherwise we may spin indefinitely fetching UIDs that don't exist. (Example: my "Deleted Items" folder had about 300k worth of empty UIDs between a very small UID and a very large UID. With the new system, this registers as a completed sync within a single iteration as soon as sync hits the gap.) Test Plan: manual Reviewers: juan, evan Reviewed By: juan, evan Differential Revision: https://phab.nylas.com/D3689 |
||
---|---|---|
.. | ||
images | ||
spec | ||
src | ||
stylesheets | ||
main.es6 | ||
package.json |