diff --git a/src/ldap.js b/src/ldap.js index cc8cc15f3..d4b5cf2f3 100644 --- a/src/ldap.js +++ b/src/ldap.js @@ -337,7 +337,8 @@ async function mailboxSearch(req, res, next) { res.end(); } } else { // new sogo - let [error, mailboxes] = await safe(mail.listAllMailboxes(1, 1000)); + // TODO figure out how proper pagination here could work + let [error, mailboxes] = await safe(mail.listAllMailboxes(1, 100000)); if (error) return next(new ldap.OperationsError(error.toString())); mailboxes = mailboxes.filter(m => m.active);