Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uvdesk:refresh-mailbox only import 10 Mails #771

Open
dwulfing opened this issue Aug 26, 2024 · 1 comment
Open

uvdesk:refresh-mailbox only import 10 Mails #771

dwulfing opened this issue Aug 26, 2024 · 1 comment

Comments

@dwulfing
Copy link

Bug report

Title

Im running php bin/console uvdesk:refresh-mailbox [email protected]

After 10 Mails stop working

Issue Description

Retrieving mailbox configuration details for xyz:

  • Found a total of 17 emails in mailbox since 2024-08-25
  • Found a total of 17 emails in mailbox since 2024-08-25

Processing all found emails iteratively:

API https://ticket.wee.eu/public/mailbox/outlook/listener

- Processing email 1 of 17:

  200 Received email from xyz. Received a self-referencing email where the sender email address matches one of the configured mailbox address. Skipping email from further processing.

- Processing email 2 of 17:

  200 Received email from xyz. Received a self-referencing email where the sender email address matches one of the configured mailbox address. Skipping email from further processing.

- Processing email 3 of 17:

  200 Received email from xyz. Received a self-referencing email where the sender email address matches one of the configured mailbox address. Skipping email from further processing.

- Processing email 4 of 17:

  200 Received email from xyz. Received a self-referencing email where the sender email address matches one of the configured mailbox address. Skipping email from further processing.

- Processing email 5 of 17:

  200 Received email from xyz. Received a self-referencing email where the sender email address matches one of the configured mailbox address. Skipping email from further processing.

- Processing email 6 of 17:

  200 Received email from xyz. Received a self-referencing email where the sender email address matches one of the configured mailbox address. Skipping email from further processing.

- Processing email 7 of 17:

  200 Received email from xyz. Received a self-referencing email where the sender email address matches one of the configured mailbox address. Skipping email from further processing.

- Processing email 8 of 17:

  200 Received email from xyz. Received a self-referencing email where the sender email address matches one of the configured mailbox address. Skipping email from further processing.

- Processing email 9 of 17:

  200 Received email from xyz. Received a self-referencing email where the sender email address matches one of the configured mailbox address. Skipping email from further processing.

- Processing email 10 of 17:

  200 Received email from xyz. Received a self-referencing email where the sender email address matches one of the configured mailbox address. Skipping email from further processing.
  • Mailbox refreshed successfully!
@dwulfing
Copy link
Author

dwulfing commented Aug 26, 2024

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';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant