Browse Source

Connection: pass COPYUID info if server has UIDPLUS

fork
Brian White 7 years ago
parent
commit
8eddf61860
  1. 8
      lib/Connection.js

8
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);

Loading…
Cancel
Save