Mailspring/packages
Juan Tejada 7b2e27b87b [local-sync] Skip unecessary folder syncs
Summary:
Before trying to sync a folder, check if we actually need to do so. This will prevent us from doing unnecessary work that slows down the sync loop (like performing SELECT commands)

We will perform a folder sync if any of the following are true
- The folder hasn't been completely synced
- There are new messages (using imap STATUS command)
- There are attribute changes indicated via highestmodseq (using imap STATUS command)
- If server doesn't support highestmodseq, it has passed enough time since we last ran an attribute scan on the folder.

Addresses T7513

Test Plan: manual

Reviewers: evan, halla, spang

Reviewed By: halla, spang

Differential Revision: https://phab.nylas.com/D3675
2017-01-14 15:56:17 -08:00
..
isomorphic-core [local-sync] Skip unecessary folder syncs 2017-01-14 15:56:17 -08:00
local-private [local-private] use new Sentry endpoint 2017-01-13 16:17:24 -08:00
local-sync [local-sync] Skip unecessary folder syncs 2017-01-14 15:56:17 -08:00