application/octet-stream .ics attachment not detected as event
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
Steps to reproduce
- Send email containing .ics attachment with MIME type set to application/octet-stream
- Open email in Nextcloud calendar
- Attempt to add attached event to Calendar
Expected behavior
Attachment is identified as a calendar event:
Actual behavior
Attachment listed without "Add to Calendar" option:
Mail app version
5.12.0
Nextcloud version
34.0.4
Mailserver or service
Gmail
Operating system
Debian LXC
PHP engine version
PHP 8.3
Nextcloud memory caching
No response
Web server
Apache (supported)
Database
MariaDB
Additional info
I realize that application/octet-stream is a non-standard MIME-type for a calendar attachment, but this is something users have no control over. In this case, the email was sent from a local blood bank.
Perhaps it would be more accessible to either:
- Allow for a list of custom mime types permitted for calendar attachments (still relatively brittle)
- Add a MIME bypass for files with extension
.ics
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with an .ics attachment labeled application/octet-stream, then trace the Mail app entry point that identifies calendar-event attachments. Compare MIME-type and filename handling, and verify that the Add to Calendar option appears without breaking standard calendar attachments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100