Mailspring/packages
Juan Tejada e1f1b22ee2 [local-sync] Ensure all imap operations are wrapped with timeout
Summary:
Specifically, these imap connections have been known to hang when you close your laptop or go offline/online, even though we are passing a `socketTimeout` to node-imap. When they hang, everything freezes because the promise waiting for the result never resolves.

`_createConnectionPromise` wraps the operations with a timeout we implemented ourselves, and correctly rejects on timeout.

This commit wraps other imap operations that were missing. (I notices because I encountered the hanging on one of these operations)

Test Plan: manual

Reviewers: evan, mark, spang

Reviewed By: spang

Differential Revision: https://phab.nylas.com/D3720
2017-01-18 10:24:26 -08:00
..
isomorphic-core [local-sync] Ensure all imap operations are wrapped with timeout 2017-01-18 10:24:26 -08:00
local-private [local-private] use new action name 2017-01-16 10:30:41 -08:00
local-sync [local-sync] Set threading headers when uploading message to Sent folder 2017-01-16 20:17:44 -08:00