Confirmed users
360
edits
No edit summary |
|||
Line 23: | Line 23: | ||
==== Whole Folder Sync Basics ==== | ==== Whole Folder Sync Basics ==== | ||
Whole-folder sync is potentially simpler because it avoids a lot of edge cases related to | Whole-folder sync is potentially simpler because it avoids a lot of edge cases related to partial sync. | ||
A simple implementation finds out what the highest unique id is in the folder and then asks for all of the envelopes for messages from UID 1 through the high UID. Relying on a correlation between UIDs and recent messages allows a client to start with higher UIDs and (usually) end up fetching the envelopes of the most recent messages first. Incremental synchronization after this initial synchronization is made much easier because | A simple implementation finds out what the highest unique id is in the folder and then asks for all of the envelopes for messages from UID 1 through the high UID. Relying on a correlation between UIDs and recent messages allows a client to start with higher UIDs and (usually) end up fetching the envelopes of the most recent messages first. Incremental synchronization after this initial synchronization is made much easier because | ||
==== Partial Folder Sync Basics ==== | ==== Partial Folder Sync Basics ==== |