From 8370471c58b6bd562f2af87fc0e00e4a4be1e65c Mon Sep 17 00:00:00 2001 From: Brian White Date: Wed, 10 Oct 2012 06:33:39 -0400 Subject: [PATCH] Add readOnly to definition and in resetBox() --- lib/imap.js | 2 ++ 1 file changed, 2 insertions(+) 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;