imap: fix permFlags check after flag case normalization change

fork
mscdex 11 years ago
parent 1815f9d5f8
commit c6c6168a72

@ -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 {

Loading…
Cancel
Save