Handle undefined quota list response when set quota on some imap server (e.g. cyrus)

fork
Chotiwat Chawannakul 11 years ago
parent e4b4abc8ac
commit 0e89bca78e

@ -879,7 +879,7 @@ Connection.prototype.setQuota = function(quotaRoot, limits, cb) {
if (err)
return cb(err);
cb(err, quotalist[0]);
cb(err, quotalist ? quotalist[0] : limits);
}
);
};

Loading…
Cancel
Save