diff --git a/lib/imap.js b/lib/imap.js index eac31a5..a26993a 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -889,7 +889,7 @@ ImapConnection.prototype._move = function(which, uids, boxTo, cb) { }); } else if (reentryCount === 1) { if (counter < deletedUIDs.length) { - self.delFlags(deletedUIDs[counter], 'DELETED', function(e) { + self.delFlags(deletedUIDs[counter], 'Deleted', function(e) { process.nextTick(function() { fnMe.call(this, e, reentryCount, deletedUIDs, counter+1); }); @@ -906,7 +906,7 @@ ImapConnection.prototype._move = function(which, uids, boxTo, cb) { }); } else if (reentryCount === 4) { if (counter < deletedUIDs.length) { - self.addFlags(deletedUIDs[counter], 'DELETED', function(e) { + self.addFlags(deletedUIDs[counter], 'Deleted', function(e) { process.nextTick(function() { fnMe.call(this, e, reentryCount, deletedUIDs, counter+1); });