diff --git a/lib/Connection.js b/lib/Connection.js index 57b8338..7384ba1 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -745,9 +745,11 @@ Connection.prototype._move = function(which, uids, boxTo, cb) { else self.seq.addFlags(uids, '\\Deleted', cbMarkDel); } else if (task === 3) { - if (which && self.serverSupports('UIDPLUS')) - self.expunge(uids, cb); - else { + if (which && self.serverSupports('UIDPLUS')) { + self.expunge(uids, function(e) { + cb(e, info); + }); + } else { self.expunge(function(e) { ++task; ccb(e, info);