diff --git a/lib/imap.js b/lib/imap.js index 0c9e595..2cf46eb 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -65,6 +65,7 @@ function ImapConnection (options) { }, box: { uidnext: 0, + readOnly: false, flags: [], newKeywords: false, uidvalidity: 0, @@ -1247,6 +1248,7 @@ ImapConnection.prototype._reset = function() { ImapConnection.prototype._resetBox = function() { this._state.box.uidnext = 0; + this._state.box.readOnly = false; this._state.box.flags = []; this._state.box.newKeywords = false; this._state.box.uidvalidity = 0;