Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #24065 from mcav/outbox-show-msgs
Browse files Browse the repository at this point in the history
Bug 1063540 - Manual setup error message when IMAP and SMTP settings are... r=asuth
  • Loading branch information
mcav committed Sep 15, 2014
2 parents 40436b1 + 23015fb commit d4cf333
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
8 changes: 4 additions & 4 deletions apps/email/js/ext/composite/configurator.js
Expand Up @@ -139,11 +139,11 @@ exports.configurator = {
// configuration falied we must close the incoming connection.
// (If the incoming side failed as well, we won't receive the
// `.then` callback.)
incomingPromise.then(function(result) {
incomingPromise.then(function incomingOkButOutgoingFailed(result) {
result.conn.close();
callback(err, /* conn: */ null);
}).catch(function(/* ignored error */) {
callback(err, /* conn: */ null);
callback(err, /* conn: */ null, { server: smtpConnInfo.hostname });
}).catch(function incomingFailed(/* ignored error */) {
callback(err, /* conn: */ null, { server: incomingInfo.hostname });
});
});
},
Expand Down
29 changes: 23 additions & 6 deletions apps/email/js/ext/mailslice.js
Expand Up @@ -2391,9 +2391,17 @@ FolderStorage.prototype = {
// mutex.
slice.setStatus('synchronizing', false, true, false,
SYNC_START_MINIMUM_PROGRESS);
this.runMutexed(
'sync',
this._sliceOpenMostRecent.bind(this, slice, forceRefresh));

var sliceFn = this._sliceOpenMostRecent.bind(this, slice, forceRefresh);

// Local-only folders don't have a real sync process, so we don't
// need to hold the mutex when syncing; all mutating operations
// run in job-ops.
if (this.isLocalOnly) {
sliceFn(function fakeReleaseMutex() { /* nothing to do */ });
} else {
this.runMutexed('sync', sliceFn);
}
},
_sliceOpenMostRecent: function fs__sliceOpenMostRecent(slice, forceRefresh,
releaseMutex) {
Expand Down Expand Up @@ -2802,9 +2810,18 @@ FolderStorage.prototype = {
// being processed, even though it might take a little bit to acquire the
// mutex.
slice.setStatus('synchronizing', false, true, false, 0.0);
this.runMutexed(
'refresh',
this._refreshSlice.bind(this, slice, false));

var refreshFn = this._refreshSlice.bind(this, slice, false);

// Local-only folders don't have a real sync process, so we don't
// need to hold the mutex when syncing; all mutating operations
// run in job-ops.
if (this.isLocalOnly) {
refreshFn(function fakeReleaseMutex() { /* nothing to do */ });
} else {
this.runMutexed('refresh', refreshFn);
}

},
_refreshSlice: function fs__refreshSlice(slice, checkOpenRecency,
releaseMutex) {
Expand Down

0 comments on commit d4cf333

Please sign in to comment.