From b7d31416d0651a8878f8dace94dec04f1da07a32 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 11 Jun 2025 14:55:43 -0700 Subject: [PATCH] mailcap: Treat .ics files as text/calendar This ensures iCalendar attachments are always displayed correctly (via `gnus-icalendar-mm-inline'), even when they have an incorrect MIME type (looking at you Google Calendar). * lisp/net/mailcap.el (mailcap-mime-extensions): Add a mapping from ".ics" to "text/calendar". (Bug#78764) (cherry picked from commit e1d0ee1b6b545c82937755dd19787c3d7059eca3) --- lisp/net/mailcap.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el index e1ee56fa6b8..8ba0082b9c2 100644 --- a/lisp/net/mailcap.el +++ b/lisp/net/mailcap.el @@ -920,6 +920,7 @@ If NO-DECODE is non-nil, don't decode STRING." (".htm" . "text/html") (".html" . "text/html") (".icon" . "image/x-icon") + (".ics" . "text/calendar") (".ief" . "image/ief") (".jpg" . "image/jpeg") (".macp" . "image/x-macpaint") -- 2.39.5