uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
Open Software License 3.0
9.13k stars 464 forks source link

uvdesk:refresh-mailbox only import 10 Mails #771

Open dwulfing opened 2 months ago

dwulfing commented 2 months ago

Bug report

Title

Im running php bin/console uvdesk:refresh-mailbox abc@def.com

After 10 Mails stop working

Issue Description

Retrieving mailbox configuration details for xyz:

dwulfing commented 2 months ago

I have look a bit and found this: If a collection exceeds the default page size (10 items), the @odata.nextLink property is returned in the response to indicate more items are available and provide the request URL for the next page of items.

You can control the page size through optional query string parameters

I have use a workaround..

Edit: vendor/uvdesk/core-framework/Utils/Microsoft/Graph/Me.php

36: $endpoint = self::BASE_ENDPOINT . '/mailFolders?$top=1000'; 75: $endpoint = self::BASE_ENDPOINT . '/messages?$count=true&$top=1000'; 77: $endpoint = self::BASE_ENDPOINT . '/mailFolders/' . $mailFolderId . '/messages?$count=true&$top=1000';