Skip to content

Added email notification upon iMIP message processing failure#12432

Open
Juniar-Rakhman wants to merge 2 commits intonextcloud:mainfrom
Juniar-Rakhman:main
Open

Added email notification upon iMIP message processing failure#12432
Juniar-Rakhman wants to merge 2 commits intonextcloud:mainfrom
Juniar-Rakhman:main

Conversation

@Juniar-Rakhman
Copy link

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 an email 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 email body containing instruction for the user on what to do. Also contains technical details on the errors
  3. Email notification will be sent to the account's owner.
  4. The email contains original message attached so the user can add it manually to their calendar.

@Juniar-Rakhman
Copy link
Author

This is the email received by the user upon iMIP processing failure (tested on our test server)

image

The code changes are currently running in one of our production environments and are functioning as expected. Users are now notified when this type of error occurs.

@SebastianKrupinski
Copy link
Contributor

Hi @Juniar-Rakhman

Thank you for the PR.

I don't know if sending the user another email is the best way... what if we created a system notification with a link to the actual failed email?

image

@Juniar-Rakhman
Copy link
Author

Juniar-Rakhman commented Feb 18, 2026

Hi @SebastianKrupinski

That was my initial thoughts too. But not all of our users use nextcloud web.
Most of them are using their own email/calendar clients e.g. thunderbird, mac mail/calendar etc. So email is the only way we could ensure that they get this notification.

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

Successfully merging this pull request may close these issues.

2 participants

Comments