Mailspring/packages/isomorphic-core
Juan Tejada c22703bd6e [local-sync] Fix imap box status check
Summary:
When syncing folders, we check if the folder needs syncing by checking if it has any new messages via the STATUS command (STATUS returns uidnext, highestmodseq among others, and is cheaper than SELECT)

However, we can't issue a STATUS on a box that is already selected. Previously, if the box was already selected, we would just return it, but this was incorrect because we wouldn't get the latest box values (e.g. uidnext), causing us to think that there were no updates available, and skip syncing folders that actually needed to be synced.

Now, if the box is already selected when getting the status, we have to re select it to refresh the latest values

Test Plan: manual

Reviewers: evan, khamidou, spang

Reviewed By: spang

Differential Revision: https://phab.nylas.com/D3697
2017-01-15 16:45:16 -08:00
..
src [local-sync] Fix imap box status check 2017-01-15 16:45:16 -08:00
index.js [local-sync]: Move sendmail-client and errors to isomorphic-core 2016-12-15 12:29:56 -08:00
package.json Update sequelize point version everywhere 2017-01-04 15:47:16 -08:00