Hack to allow SOGo logins for more than 1k mailboxes
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user