From 9d4aa4c3264127fffbbcab99dfa303b2214749d9 Mon Sep 17 00:00:00 2001 From: Jason Gunthorpe Date: Sat, 30 May 2020 19:35:25 -0300 Subject: Increase the page size for listing O365 mailboxes This helps large mailboxes quite a lot, it looks like this can list some 700 messages/second Signed-off-by: Jason Gunthorpe --- cloud_mdir_sync/office365.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cloud_mdir_sync/office365.py b/cloud_mdir_sync/office365.py index 6eec42e..d68e75d 100644 --- a/cloud_mdir_sync/office365.py +++ b/cloud_mdir_sync/office365.py @@ -487,6 +487,7 @@ class O365Mailbox(mailbox.Mailbox): "$expand": "SingleValueExtendedProperties($filter=(id eq 'Integer 0xe17') or" " (id eq 'Integer 0x1080'))", + "$top": 500, }): msg = messages.Message(mailbox=self, storage_id=jmsg["id"], -- cgit v1.2.3