freescout
freescout copied to clipboard
ics calendar attachments not displayed in MS Teams invitations
Is there any special feature that handles ics calendar attachments differently from other attachments? I can find the ics attachments stored in app/attachment but they are not at all displayed in the respective conversation. All other attachment types are displayed. Anything I can check or configure to make these attachments become visible?
Any pointer is highly appreciated. Thanks in advance.
Sorry. Duplicate of #1412 and #1003
Can you send a test email to [email protected]
Done. Thanks!
The .ics file is received and can be downloaded.

Weird. Checking the attachments table in the database shows that all (at least all I checked) ics attachments are in the database. They are also saved to the app/storage folder. However, they are still not displayed in the conversation. I'll try to dig a little deeper later.
Anything I can check in my particular installation? Can you think of any locale or other settings that could affect whether a file is displayed?
It's hard to tell what may cause this. It need to be debugged.
Try to find .ics attachment in attachments table and check embedded field. If embedded=true it means the attachment by some reason has been detected as embedded in the text of the message (like embedded image).
Just checked. None of the ics files in the attachments table is embedded. mime_type is correctly set to "text/calendar".
Additionally, I double checked a few random attachments (embedded and non-embedded) with the original emails and all of them are correctly registered as well.
This is where attachment are being displayed: https://github.com/freescout-helpdesk/freescout/blob/dist/resources/views/conversations/partials/thread_attachments.blade.php
Thank you for the pointer to the has_attachment flag I noticed only now. Checking a few samples indeed show conversations with "has_attachment 0" where actually an attachment was received. That's something I can start investigating from. I'll dig deeper for a pattern as soon as I can.
Have you found a solution?
AFK right now. I will continue to look into this hopefully next week when I‘m back to my desk.
Finally I could do some more research. Here's my findings.
- There indeed are some ics attachments in the database. I was following a few entries back through the threads and conversation tables to locate the original email. Can't see any issues here. ics attachments are properly shown in the conversation!
None of the attachments has been "embedded", in case that's important.
- Going the other way round, I picked random invites from my inbox and followed them down through the freescout database. I could not see the pattern before, but all affected ics attachments are sent from M$ teams. I can't exclude that there are other sources that are also affected. I found invites with customized layouts that still seem to be sent from M$ Teams or derivatives.
Double checking, there is no single ics attachment (out of those M$ Teams invites I checked) properly stored in the database. All checked invites have "has_attachment=0" in the conversations table and nothing is in the attachments table consequently.
I think the problem lies with parsing the automated emails sent by M$ Teams. Unfortunately, I don't have access to M$ Teams and can't send you a test invite. Only thing I can do is providing you the header of an actual M$ Teams invite from my inbox.
Interestingly, the M$ Teams invites do not have the meeting date/time printed in the email plain text, what makes the missing attachment critical. Users can't make sense of the invite without access to the original email. Only M$ knows why this information is not in the email, just for convenience.
Duplicate of https://github.com/freescout-helpdesk/freescout/issues/1412