Repository navigation
feat(event): event from mail are linked with a new property and can be opened from the calendar app - #9207
feat(event): event from mail are linked with a new property and can be opened from the calendar app#9207taiebot wants to merge 2 commits into
Conversation
…a mail (#4) Add the X-NEXTCLOUD-MAIL-MESSAGE-ID property to events created from a message so that Calendar can link back to the email. Mail app needs nextcloud/mail#14128 Assisted-by: Claude:claude-sonnet-5-5
SebastianKrupinski
left a comment
There was a problem hiding this comment.
Hi @taiebot
I think this is a bad idea... these properties get sent in iTip and iMip messages... so essentially you are sending out private information to other users
|
Does Nextcloud Calendar has a mechanism to filter internal X- properties during invitation generation ? We could keep the property in mail and do a filtering before sending it. That seems the best implementation to keep private information in nextcloud. This is the .ics |
|
@SebastianKrupinski Ok, it would be nice to implement, but there might be too many restrictions on this PR. Let me know if it is worth pursuing. What we could do is patch the IMipPlugin so these Nextcloud properties are not included in outgoing iMIP emails, while events delivered locally between Nextcloud users keep them. The link can be opened by anyone who received the mail (deeplink). I thought it was a clever use of these properties and was planning to do the same for tasks too. Example of the patch needed for the IMipPlugin: $template->addFooter();
- // convert iTip Message to string
- $itip_msg = $iTipMessage->message->serialize();
+
+ // Don't leak private Nextcloud properties to the recipient.
+ // Work on a copy: the original iTIP message is also used for local delivery.
+ $itipCalendar = clone $iTipMessage->message;
+ foreach ($itipCalendar->select('VEVENT') as $itipEvent) {
+ $itipEvent->remove('X-NEXTCLOUD-MAIL-MESSAGE-ID');
+ }
+
+ // convert iTip Message to string
+ $itip_msg = $itipCalendar->serialize(); |
No, neither NC or Sabre have this |
Yes that would be the right solution, I would need to speak to the team about this, I might include this improvement, in some of the changes I am making. |
See review in mail app nextcloud/mail#14128 (comment) Signed-off-by: taiebot <13300652+taiebot@users.noreply.github.com>
|
Ok let me know what you plan to do... I would love to see this land in calendar and tasks |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
An event created from the mail app can carry a new property X-NEXTCLOUD-MAIL-MESSAGE-ID .
See the original proposal in here nextcloud/mail#13052 but technically now all we do is adding a tiny icon when the event carry the property and when we click on it it opens the mail app on the event
Add the X-NEXTCLOUD-MAIL-MESSAGE-ID property to events created from a message so that Calendar can link back to the email.
Mail app needs nextcloud/mail#14128
Assisted-by: Claude:claude-sonnet-5-5
🤖 AI (if applicable)