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 {