{
  "name": "isomorphic-core",
  "version": "0.0.1",
  "description": "Packages use isomorphically on n1-cloud and local-sync",
  "main": "index.js",
  "dependencies": {
    "imap": "0.8.18",
    "imap-provider-settings": "nylas/imap-provider-settings",
    "joi": "8.4.2",
    "nodemailer": "2.5.0",
    "promise-props": "1.0.0",
    "promise.prototype.finally": "1.0.1",
    "rx": "4.1.0",
    "sequelize": "3.28.0",
    "underscore": "1.8.3",
    "xoauth2": "1.2.0"
  },
  "author": "Nylas",
  "license": "ISC"
}

{
  "name": "isomorphic-core",
  "version": "0.0.1",
  "description": "Packages use isomorphically on n1-cloud and local-sync",
  "main": "index.js",
  "dependencies": {
    "imap": "jstejada/node-imap#fix-parse-body-list",
    "imap-provider-settings": "nylas/imap-provider-settings",
    "joi": "8.4.2",
    "nodemailer": "2.5.0",
    "promise-props": "1.0.0",
    "promise.prototype.finally": "1.0.1",
    "rx": "4.1.0",
    "sequelize": "3.28.0",
    "underscore": "1.8.3",
    "xoauth2": "1.2.0"
  },
  "author": "Nylas",
  "license": "ISC"
}

Fix Mailbox does not exist error during sync
[local-sync] Fix Mailbox does not exist error during sync

Summary:
This error ocurred, to the best of our knowledge, on iCloud accounts
that had been linked to other clients like Airmail.

On such accounts, node-imap would incorrectly parse the mailbox list
from imap, and return an `Airmail` folder which did not exist, causing
us to try to sync that nonexistent folder and error in the sync loop.

This error is amongst the most frequent we've seen in Sentry and
Support: https://sentry.io/nylas/nylas-mail/issues/213158962/events/4897450600/

The fix es detailed in the PR to node-imap: https://github.com/mscdex/node-imap/pull/594/files
This commit only points the node-imap dependency to our fork for now

Test Plan: manual and unit tests in node-imap

Reviewers: mark, khamidou, spang

Reviewed By: spang

Differential Revision: https://phab.nylas.com/D3860
