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)
This commit is contained in:
Steven Allen 2025-06-11 14:55:43 -07:00 committed by Eli Zaretskii
parent 994f816ca8
commit e1d0ee1b6b

View 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")