Hack to allow SOGo logins for more than 1k mailboxes

This commit is contained in:
Johannes Zellner
2022-02-07 16:22:05 +01:00
parent 23b3070c52
commit e3a0a9e5dc
+2 -1
View File
@@ -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);