Follow Up: write REQUEST type iMIP messages to calendars automatically
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:
- User can define this invitation calendar as a default option somewhere
- 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
As far as I can tell, the invitations are already written to the default calendar. @st3iny can you confirm?
@st3iny can you?
Yes, I can. We have a configurable default calendar for incoming invitations which we can simply reuse here.
I think the biggest concern here is how to avoid spam? We don't want to flood a user's calendar with unsolicited invitations.
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.
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?
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