Skip to content

Create notification upon IMip message processing failure#12552

Open
Juniar-Rakhman wants to merge 1 commit intonextcloud:mainfrom
Juniar-Rakhman:main
Open

Create notification upon IMip message processing failure#12552
Juniar-Rakhman wants to merge 1 commit intonextcloud:mainfrom
Juniar-Rakhman:main

Conversation

@Juniar-Rakhman
Copy link

@Juniar-Rakhman Juniar-Rakhman commented Mar 12, 2026

This is a follow up PR based on feedback on the original PR.

This is a follow up changes to a patch done for:
#10811

The patch to address above issue fixes the processing flow of iMip message processing. When a failure occurs, the batch job logs the error and continues processing the next iMIP message instead of failing the entire job.

Issue:
Although the patch resolves the processing problem, failures occur silently from the user’s perspective. The user is not informed when an iMIP message fails to process and therefore cannot take corrective action.

Solution:
Created a notification upon iMIP messaging failure that will be sent to message owner (account's email).

Added the following changes:

  1. Error recovery with notification instead of failing silently.
  2. Added sendErrorNotification() method to generate Nextcloud notification
  3. Added a new notification subject 'imip_processing_failed' handled by the Mail app notifier.
  4. When an error occurs, the user receives a Nextcloud notification explaining that the invitation could not be processed automatically.
  5. The notification includes a direct link to the affected email, allowing the user to open it and manually add the calendar event.

@welcome
Copy link

welcome bot commented Mar 12, 2026

Thanks for opening your first pull request in this repository! ✌️

@Juniar-Rakhman Juniar-Rakhman marked this pull request as ready for review March 12, 2026 10:48
@Juniar-Rakhman
Copy link
Author

Juniar-Rakhman commented Mar 12, 2026

Here the notification is shown to the user.

2026-03-12_17-42

When clicked, it will redirect the user to the failed email message.

2026-03-12_17-43

For Users that do not use Nextcloud web, they might missed the notification, but they should receive the email about unread notifications after 1 hour (configurable).
image

Current setup is not so ideal as most IMip messages are time sensitive and most of our users do not use Nextcloud web.

I would prefer to be able to configure the notification like in the "activity" notification:
image

Probably a settings called "IMip Processing Failure" under "Other activities"

@ChristophWurst I could use your guidance here. I'm not sure if I should pursue further changes on Activity notification, and if so where do I start?

@ChristophWurst ChristophWurst marked this pull request as draft March 12, 2026 10:52
@ChristophWurst ChristophWurst changed the title [WIP] - Create notification upon IMip message processing failure Create notification upon IMip message processing failure Mar 12, 2026
@Juniar-Rakhman Juniar-Rakhman marked this pull request as ready for review March 12, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants