You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIK there's a standard for that kind of email. We'd have to detect it and display an appropriate detail view, ideally with some info from your Nextcloud calendar to see if you're free or busy.
How's the invitation displayed now? I think it should be displayed in a readable form though.
I guess the problem is, that especially for HTML mails images and other stuff is kind of embedded in the content. It's included as a separate part each but has no filename (
As @st3iny and I discovered, there is also a 3rd state we haven't considered yet:
User Alice invited Bob (who uses Mail) to an event.
User Alice updates the event, Bob gets a second email to the same event. But now the text should not say "You have been invited"but "an event you have been invited to has been updated" and offer the same buttons again.
For the first stage is should be fine not to display this. The backend will do the right thing when writing to CalDAV and will update the correct event provided the user imports the event to the same calendar again.
But we might need to search a user's calendar collection for the UID of the event to determine if this is the initial rquest or an update.
Since we provide a processed column, it should be possible to do this without overloading the mail app and decresing performance.
@nimishavijay Thank you for the detailed mockups. I'm almost finished implementing them but I'm still unsure about one thing: Which actions should be available inside the "More options" menu?
I think the "More options" was based on the way NC sends calendar invite mails, where the "More options" button takes you to a page where you can respond with the number of guests and comments. I don't think this is possible for iMIP invitation, so just Accept and Decline can work :)
I think the "More options" was based on the way NC sends calendar invite mails, where the "More options" button takes you to a page where you can respond with the number of guests and comments. I don't think this is possible for iMIP invitation, so just Accept and Decline can work :)
It is actually mentioned in the RFC that guests and comments are allowed to be submitted in a REPLY.
Activity
ChristophWurst commentedon Oct 17, 2016
Hi @connium,
AFAIK there's a standard for that kind of email. We'd have to detect it and display an appropriate detail view, ideally with some info from your Nextcloud calendar to see if you're free or busy.
How's the invitation displayed now? I think it should be displayed in a readable form though.
connium commentedon Oct 17, 2016
Hi @ChristophWurst,
this is how it looks like right now.
There is no attachment displayed. Directly below the invitation message there is the response area.
A PM with the original email is on its way to you.
Of course it would be nice to have a detail view. Actually I'd be happy if the attached appointment is displayed, so I can see there is any 😉
connium commentedon Oct 19, 2016
Got another mail with an embedded image where only the text/plain part which isn't displayed.
Looks like there is a general issue with multipart mails. Is multipart expected to work out of the box or is this a planned feature?
ChristophWurst commentedon Oct 19, 2016
Well, at least there is some code that does something about multipart
mail/lib/model/imapmessage.php
Lines 387 to 392 in 4eacfd3
connium commentedon Oct 19, 2016
Thanks man, you're really fast!
I guess the problem is, that especially for HTML mails images and other stuff is kind of embedded in the content. It's included as a separate part each but has no filename (
mail/lib/model/imapmessage.php
Lines 409 to 423 in 4eacfd3
At least it's true for the two mails I'm noticing this behavior (the outlook invitation yesterday and the embedded image today).
I will play around with multipart mails and add my findings to this issue.
ChristophWurst commentedon Oct 19, 2016
Good catch! Do you know how to fix that? A PR for that is very welcome 😉
connium commentedon Oct 19, 2016
To be honest, I have no idea how to fix it. It seems to be not that easy:
text/htmlandtext/plainMost probably some more. I'll try to figure this out.
36 remaining items
[-]Support for iMIP invitations[/-][+]Render iMIP invitations[/+]miaulalala commentedon Jul 1, 2022
As @st3iny and I discovered, there is also a 3rd state we haven't considered yet:
User Alice invited Bob (who uses Mail) to an event.
User Alice updates the event, Bob gets a second email to the same event. But now the text should not say "You have been invited"but "an event you have been invited to has been updated" and offer the same buttons again.
For the first stage is should be fine not to display this. The backend will do the right thing when writing to CalDAV and will update the correct event provided the user imports the event to the same calendar again.
But we might need to search a user's calendar collection for the UID of the event to determine if this is the initial rquest or an update.
Since we provide a processed column, it should be possible to do this without overloading the mail app and decresing performance.
st3iny commentedon Jul 5, 2022
@nimishavijay Thank you for the detailed mockups. I'm almost finished implementing them but I'm still unsure about one thing: Which actions should be available inside the "More options" menu?
nimishavijay commentedon Jul 6, 2022
I think the "More options" was based on the way NC sends calendar invite mails, where the "More options" button takes you to a page where you can respond with the number of guests and comments. I don't think this is possible for iMIP invitation, so just Accept and Decline can work :)
miaulalala commentedon Jul 6, 2022
It is actually mentioned in the RFC that guests and comments are allowed to be submitted in a REPLY.
ChristophWurst commentedon Aug 18, 2022
This part of the iMIP features - the rendering - was done with #6782. The replying part is tracked in the other ticket #6803.
Luncheon3462 commentedon Apr 15, 2024
@ChristophWurst @miaulalala @st3iny, please help get this fixed. When Office 365 sends calendar invitations, the snappymail nextcloud app by @the-djmaze handles them perfectly. They appear in the email message and can be added to a nextcloud calendar with one-click. Maybe this code that @the-djmaze mentioned will work? https://github.com/the-djmaze/snappymail/blob/fffc04499875531bd3dd626d01baaf7a86452cd3/plugins/nextcloud/js/message.js#L111-L179