[GH-ISSUE #1672] 🐛 [Bug] EWS: Messages of type event, calendar #694

Closed
opened 2026-02-25 21:35:42 +03:00 by kerem · 4 comments
Owner

Originally created by @christer77 on GitHub (Sep 11, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1672

Originally assigned to: @kroky on GitHub.

A constant has been made, for the EWS server, a message of type event, calendar are not loaded on the list of messages in the inbox folder.

By using exchange OVH to test Exchange Web Services, the messages are clearly visible (ref: capture below), which is not possible with cypht

Image

view in Cypht:

Image

Originally created by @christer77 on GitHub (Sep 11, 2025). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1672 Originally assigned to: @kroky on GitHub. A constant has been made, for the EWS server, a message of type event, calendar are not loaded on the list of messages in the inbox folder. By using exchange OVH to test Exchange Web Services, the messages are clearly visible (ref: capture below), which is not possible with cypht <img width="723" height="556" alt="Image" src="https://github.com/user-attachments/assets/cbcaa7b2-85ed-4d69-8fe1-e6716e262cba" /> **view in Cyph**t: ![Image](https://github.com/user-attachments/assets/982d74a7-c7bb-444a-85cf-9114bfa7a215)
kerem 2026-02-25 21:35:42 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@marclaporte commented on GitHub (Sep 13, 2025):

@christer77 This is a good catch!

While the Cypht calendar is quite basic (can't accept calendar invitations), it makes sense to look at this because

I hope it is easily supported by https://github.com/Garethp/php-ews

<!-- gh-comment-id:3288167814 --> @marclaporte commented on GitHub (Sep 13, 2025): @christer77 This is a good catch! While the Cypht calendar is quite basic (can't accept calendar invitations), it makes sense to look at this because - Cypht standalone users should be aware of the invitations - Cypht within Tiki handles https://doc.tiki.org/Calendar-Invitations-by-email I hope it is easily supported by https://github.com/Garethp/php-ews
Author
Owner

@kroky commented on GitHub (Sep 15, 2025):

If you can't see the messages at all in Cypht, check that the messages are not actually in antother folder like CalendarFolder or their message type is not something like IPF.Appointment. The php-ews lib should be flexible enough to allow us to fetch and display these kind of messages.

<!-- gh-comment-id:3290590206 --> @kroky commented on GitHub (Sep 15, 2025): If you can't see the messages at all in Cypht, check that the messages are not actually in antother folder like CalendarFolder or their message type is not something like IPF.Appointment. The php-ews lib should be flexible enough to allow us to fetch and display these kind of messages.
Author
Owner

@christer77 commented on GitHub (Sep 16, 2025):

If you can't see the messages at all in Cypht, check that the messages are not actually in antother folder like CalendarFolder or their message type is not something like IPF.Appointment. The php-ews lib should be flexible enough to allow us to fetch and display these kind of messages.

We checked all folders to expect to get the messages with event items, unfortunately we did not get them. Then, we tried a simple implementation here https://github.com/Baraka24/simple-EWS-client and the messages with event items displayed well. From there we can confirm that the issue is in EWS integration in Cypht that we tried to fix and got blocked, that is why we called you for help.

<!-- gh-comment-id:3299163107 --> @christer77 commented on GitHub (Sep 16, 2025): > If you can't see the messages at all in Cypht, check that the messages are not actually in antother folder like CalendarFolder or their message type is not something like IPF.Appointment. The php-ews lib should be flexible enough to allow us to fetch and display these kind of messages. We checked all folders to expect to get the messages with event items, unfortunately we did not get them. Then, we tried a simple implementation here https://github.com/Baraka24/simple-EWS-client and the messages with event items displayed well. From there we can confirm that the issue is in EWS integration in Cypht that we tried to fix and got blocked, that is why we called you for help.
Author
Owner

@kroky commented on GitHub (Sep 17, 2025):

@christer77 the problem is that hm-ews is using search to find the items but then uses only message type items.
line 587: $messages = $result->getItems()->getMessage() ?? [];

When you dump the $result->getItems() you will see 2 meetingRequest message types besides the 18 normal message types. This is on the first page of the current evoludata account. Please work on merging these other message types into the message structure, and use proper flags to differentiate between calendar items, invitations, etc.

<!-- gh-comment-id:3302582549 --> @kroky commented on GitHub (Sep 17, 2025): @christer77 the problem is that hm-ews is using search to find the items but then uses only message type items. line 587: $messages = $result->getItems()->getMessage() ?? []; When you dump the $result->getItems() you will see 2 meetingRequest message types besides the 18 normal message types. This is on the first page of the current evoludata account. Please work on merging these other message types into the message structure, and use proper flags to differentiate between calendar items, invitations, etc.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#694
No description provided.