Merge pull request #294 from wavify/setquota-undefined-quotalist

Handle undefined quotalist when set quota on some imap server (e.g. cyrus)
fork
Brian White 11 years ago
commit af0280adb6

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

Loading…
Cancel
Save