From c6c6168a7248d1bb42ac184aba758fd6680e512a Mon Sep 17 00:00:00 2001 From: mscdex Date: Wed, 12 Jun 2013 02:07:57 -0400 Subject: [PATCH] imap: fix permFlags check after flag case normalization change --- lib/imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imap.js b/lib/imap.js index b1960c9..36350db 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -1343,7 +1343,7 @@ ImapConnection.prototype._move = function(which, uids, boxTo, cb) { var self = this; if (this._state.status !== STATES.BOXSELECTED) throw new Error('No mailbox is currently selected'); - if (this._state.box.permFlags.indexOf('Deleted') === -1) { + if (this._state.box.permFlags.indexOf('deleted') === -1) { throw new Error('Cannot move message: ' + 'server does not allow deletion of messages'); } else {