From 8eddf618606cfbbb3999ccd0ead79d55265c89c9 Mon Sep 17 00:00:00 2001 From: Brian White Date: Mon, 13 Jul 2015 09:26:40 -0400 Subject: [PATCH] Connection: pass COPYUID info if server has UIDPLUS --- lib/Connection.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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);