nextcloud / nextcloud/mail

application/octet-stream .ics attachment not detected as event

Open
#13,688 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce
  1. Send email containing .ics attachment with MIME type set to application/octet-stream
  2. Open email in Nextcloud calendar
  3. Attempt to add attached event to Calendar
Expected behavior

Attachment is identified as a calendar event:

Image
Actual behavior

Attachment listed without "Add to Calendar" option:

Image
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.