mail icon indicating copy to clipboard operation
mail copied to clipboard

Follow Up: write REQUEST type iMIP messages to calendars automatically

Open miaulalala opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? Please describe.

This is a follow up to https://github.com/nextcloud/mail/issues/6802

The difficulty is which calendar the invitation should be written to.

Options:

  1. User can define this invitation calendar as a default option somewhere
  2. always write to the personal calendar and let the user handle the moving of calendar objects in the Calendar app

Describe the solution you'd like

To Do

  • [ ] Add an if clause in the IMIpService::process function that checks for 'REQUEST'. This clause should then

    • [ ] either check for the existence of the personal calendar or
    • [ ] check for the preset calendar from oc_prefrences
  • [ ] process the REQUEST by calling the ICreateFromString::createFromString method and writing to that specific calendar.

  • [ ] Mark the message as processed, or in case the storing didn't work, mark it as erroneous.

  • [ ] In the frontend, if we go with option 1), add a settings field somewhere and store it in oc_preferences.

  • [ ] Display the processed / erroneous state

Describe alternatives you've considered

Not processing the messages and leaving it up to the user if they want to see them in their calendar. We already provide an import option.

Additional context

No response

miaulalala avatar Aug 12 '22 14:08 miaulalala

As far as I can tell, the invitations are already written to the default calendar. @st3iny can you confirm?

miaulalala avatar Nov 10 '22 23:11 miaulalala

@st3iny can you?

ChristophWurst avatar Jul 01 '24 14:07 ChristophWurst

Yes, I can. We have a configurable default calendar for incoming invitations which we can simply reuse here.

st3iny avatar Sep 03 '25 08:09 st3iny

I think the biggest concern here is how to avoid spam? We don't want to flood a user's calendar with unsolicited invitations.

st3iny avatar Sep 03 '25 08:09 st3iny

We already have REQUEST handling. Any invitation updates are REQUEST's also.

What we now also have is the ability to automatically add NEW REQUEST's to the calendar. (we just need to re-enable the default calendar setting in calendar app)

https://github.com/nextcloud/server/pull/53831

As for spam handling, we could check if the senders email address exists in the users contacts.

This was on my list of improvements now that we have the above PR.

SebastianKrupinski avatar Sep 03 '25 13:09 SebastianKrupinski

is there any update for this issue? i need to add some trusted mail servers to be added automatically to user calendar as soon as receive mail.
is resolving this issue handle it?

einali avatar Sep 23 '25 11:09 einali

https://github.com/nextcloud/mail/issues/7750 is a duplicate of this. We have 30 upvotes on the other ticket so I'd suggest to close this one

ChristophWurst avatar Nov 06 '25 14:11 ChristophWurst