]> git.eshelyaron.com Git - emacs.git/commitdiff
mailcap: Treat .ics files as text/calendar
authorSteven Allen <steven@stebalien.com>
Wed, 11 Jun 2025 21:55:43 +0000 (14:55 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:13:39 +0000 (10:13 +0200)
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

index e1ee56fa6b8004d0755517c9621cba10079f6b92..8ba0082b9c2fed9f9731bde73544d2e43a60686c 100644 (file)
@@ -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")