Skip to content

Render iMIP invitations #160

Closed
Closed

Description

@connium

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

  1. Create outlook meeting and send invitation to participants from outlook
  2. Open invitation mail as participant with Mail app

Describe the solution you'd like

The mail is displayed properly and the event can be downloaded as attachment.

As a follow-up #6803 will allow users to create replies to those emails.

Activity

  1. ChristophWurst commented on Oct 17, 2016

    @ChristophWurst
    Member

    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.

  2. connium commented on Oct 17, 2016

    @connium
    Author

    Hi @ChristophWurst,

    this is how it looks like right now.

    nextcloud-mail-issue-160-1

    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 😉

  3. connium commented on Oct 19, 2016

    @connium
    Author

    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?

  4. ChristophWurst commented on Oct 19, 2016

    @ChristophWurst
    Member

    Well, at least there is some code that does something about multipart

    if ($structure_type === 'multipart') {
    $i = 1;
    foreach($structure->getParts() as $p) {
    $this->getPart($p, $i++);
    }
    } else {
    🙈

  5. connium commented on Oct 19, 2016

    @connium
    Author

    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 (

    $filename = $p->getName();
    if(isset($filename)) {
    if(in_array($filename, $this->attachmentsToIgnore)) {
    return;
    }
    $this->attachments[]= [
    'id' => $p->getMimeId(),
    'messageId' => $this->messageId,
    'fileName' => $filename,
    'mime' => $p->getType(),
    'size' => $p->getBytes(),
    'cid' => $p->getContentId()
    ];
    return;
    }
    ) and thus it is not handled as an attachment.

    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.

  6. ChristophWurst commented on Oct 19, 2016

    @ChristophWurst
    Member

    Good catch! Do you know how to fix that? A PR for that is very welcome 😉

  7. connium commented on Oct 19, 2016

    @connium
    Author

    To be honest, I have no idea how to fix it. It seems to be not that easy:

    • For embedded parts a filename must be "generated".
    • How to handle the mail body if the mail contains text/html and text/plain

    Most probably some more. I'll try to figure this out.

  8. 36 remaining items

  9. changed the title [-]Support for iMIP invitations[/-] [+]Render iMIP invitations[/+] on Jun 29, 2022
  10. self-assigned this
    on Jul 1, 2022
  11. miaulalala commented on Jul 1, 2022

    @miaulalala
    Contributor

    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.

  12. st3iny commented on Jul 5, 2022

    @st3iny
    Member

    @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?

  13. nimishavijay commented on Jul 6, 2022

    @nimishavijay
    Member

    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 :)

  14. miaulalala commented on Jul 6, 2022

    @miaulalala
    Contributor

    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.

  15. ChristophWurst commented on Aug 18, 2022

    @ChristophWurst
    Member

    This part of the iMIP features - the rendering - was done with #6782. The replying part is tracked in the other ticket #6803.

  16. Repository owner moved this from 🏗️ In progress to ☑️ Done in 💌 📅 👥 Groupware teamon Aug 18, 2022
  17. Luncheon3462 commented on Apr 15, 2024

    @Luncheon3462

    @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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions