Mailspring/packages/nylas-core
Juan Tejada dd350a5081 Update IMAPConnection api + error handling fixes + misc
- `IMAPConnection::openBox` now returns a Promise that resolves to an
IMAPBox, and IMAPBox contains all of the `fetch` operations. This makes
the dependency between fetch operations and the currently open mailbox
explicit rather than implicit and by forcing the operations to be called on
a box instance and hopefully prevent errors. It will also throw an error
if the constraint is no longer satisfied.

- `fetch` operations now return an observable stream of messages (or Promise for single value),
while preserving the same logic of the original implementation. You can use `.toPromise()` on
the observable to get a Promise that resolves when the observable stream has
completely drained.

- Fixes error handling in a few places and renames some variables
2016-06-26 01:57:33 -07:00
..
config Convert to monorepo 2016-06-22 14:41:32 -07:00
migrations Convert to monorepo 2016-06-22 14:41:32 -07:00
models Update IMAPConnection api + error handling fixes + misc 2016-06-26 01:57:33 -07:00
database-connector.js sync db <=> redis with sequelize hooks 2016-06-23 16:28:51 -07:00
database-extensions.js Convert to monorepo 2016-06-22 14:41:32 -07:00
database-types.js Convert to monorepo 2016-06-22 14:41:32 -07:00
hook-account-crud.js Launch dashboard when in dev mode, publish change on acct creation 2016-06-23 18:17:04 -07:00
hook-transaction-log.js sync db <=> redis with sequelize hooks 2016-06-23 16:28:51 -07:00
imap-connection.js Update IMAPConnection api + error handling fixes + misc 2016-06-26 01:57:33 -07:00
index.js Dashboard with a sweet background. Also realtime assignment / policy view. 2016-06-23 15:52:53 -07:00
package.json Add imap dependency to package.json 2016-06-23 13:18:33 -06:00
pubsub-connector.js Rather than changing policies, just set expiring redis key to track activity 2016-06-23 16:28:48 -07:00
scheduler-utils.js Launch dashboard when in dev mode, publish change on acct creation 2016-06-23 18:17:04 -07:00
sync-policy.js Rather than changing policies, just set expiring redis key to track activity 2016-06-23 16:28:48 -07:00