From unknown Tue Jun 17 22:27:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78764: [PATCH] mailcap: Treat .ics files as text/calendar Resent-From: Steven Allen Original-Sender: "Debbugs-submit" Resent-CC: wmperry@aventail.com, larsi@gnus.org, bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Jun 2025 22:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 78764 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 78764@debbugs.gnu.org Cc: William M. Perry , Lars Magne Ingebrigtsen X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: William M. Perry , Lars Magne Ingebrigtsen Received: via spool by submit@debbugs.gnu.org id=B.17496793222891 (code B ref -1); Wed, 11 Jun 2025 22:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jun 2025 22:02:02 +0000 Received: from localhost ([127.0.0.1]:52716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uPTWD-0000kX-Ss for submit@debbugs.gnu.org; Wed, 11 Jun 2025 18:02:02 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57462) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uPTWB-0000jf-7b for submit@debbugs.gnu.org; Wed, 11 Jun 2025 18:01:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uPTW5-00058k-FG for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2025 18:01:53 -0400 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uPTW3-0001xC-Ba for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2025 18:01:53 -0400 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 869E72540190 for ; Wed, 11 Jun 2025 18:01:48 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 11 Jun 2025 18:01:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1749679308; x=1749765708; bh=0YG3dqHrgug8jRv7IYNAsvb8pwI2Su5R 3FKyBiJe+CE=; b=jG4f/SSheZjo2m49xBvdjh/G4fM3D+HhxAqduWfsA8EQdjz7 hdcTr0CRfrA4NOCSkpEqdoB2QhOzUlamDXgctz/Fcpu49y8Wp3ignzGCU1DRQnw+ LnlLDMAfiyM6c3WCTgUoFtCrjeeFXCTEKjNWN2iKcC/4kda6t3ND8UUzQZGFJVos GV/x4Iqol3yc6CX4gu0JAdpqhxO537XdiLFxM3q6Bbg+FXruoL72zCAe6+CXWyil J5SPG/C1m9h7gJAyaoqjlqsXFRg/t8VfnE8pssGkE3glels7jqtgdnUBXxQmY6x1 LNkQ8o9TD2Fs6e90pWghsIwo23OO7P+pHeRV5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1749679308; x= 1749765708; bh=0YG3dqHrgug8jRv7IYNAsvb8pwI2Su5R3FKyBiJe+CE=; b=r BXqSCx0J27ZjhMaZ6iiEeiUHSMsUgw23DYZcNcmrjVCCIejl1Z8M7AYku1RE33aY Vv/nbRZxKm+Xlvnte0aZ+aXVNni9ztyzK4QUZI9xJnVuE0aGeZCkQfPTLQhqJTTa ViQdY3PPITdBpUPgR6w72Wz5cJF+kdxa00ic2mGAOAma7HL5LesKfm0SqRlhWHtY aq4u2rWEHP4gLcr0nFC6z/ZPtY8JrzkRbUeLDNa8aYMr1izvEzX8csCMtixha3Bn BQ8AZSc0pvIwVNmXoEbGiReidN2X73s5tETTZwOinGYlie9XjkJrS/kfrj1t//FH dH2mOpmPzaadbXmrv1KWg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugddufeeffecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvuf ffkfggtgesmhdtreertddttdenucfhrhhomhepufhtvghvvghnucetlhhlvghnuceoshht vghvvghnsehsthgvsggrlhhivghnrdgtohhmqeenucggtffrrghtthgvrhhnpeekffffgf evteehtdeiffelffegkedvieeigeehfedtteejkeefhfevtddtkeefffenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsthgvvhgvnhesshhtvg gsrghlihgvnhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhht pdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: ie8a146a7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 11 Jun 2025 18:01:47 -0400 (EDT) From: Steven Allen Date: Wed, 11 Jun 2025 15:01:45 -0700 Message-ID: <871prq2b06.fsf@stebalien.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=202.12.124.154; envelope-from=steven@stebalien.com; helo=fhigh-b3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --=-=-= Content-Type: text/plain Tags: patch Add a mapping from ".ics" to "text/calendar" to mailcap-mime-extensions to ensure that iCalendar attachments are always previewed correctly, even when their MIME type is incorrect (as it is for Google Calendar invites). In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.18.4) of 2025-06-11 built on Laptop Repository revision: 87244ef1661f9e9d7c08f65047551e8a34cd92b2 Repository branch: makepkg Windowing system distributor 'The X.Org Foundation', version 11.0.12101016 System Description: Arch Linux Configured using: 'configure 'CPPFLAGS=-I/run/user/1000/build/emacs-git/src/mps-git/build/include ' 'LDFLAGS=-L/run/user/1000/build/emacs-git/src/mps-git/build/lib -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto' --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-modules --without-m17n-flt --without-selinux --without-pop --without-gconf --disable-gc-mark-trace --with-mps=yes --enable-link-time-optimization --with-native-compilation=yes --with-xinput2 --with-x-toolkit=no --without-toolkit-scroll-bars --without-xaw3d --without-gsettings --with-cairo-xcb --without-xft --with-sound=no --with-tree-sitter --without-gpm --without-compress-install '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fomit-frame-pointer -fno-math-errno -fno-trapping-math -fno-math-errno -fno-trapping-math -flto=auto'' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-mailcap-Treat-.ics-files-as-text-calendar.patch >From e77702cc5ce09b48ad978ced4832c56e0bc2b05a 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". --- lisp/net/mailcap.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el index 7e69826160e..b80baab97d5 100644 --- a/lisp/net/mailcap.el +++ b/lisp/net/mailcap.el @@ -920,6 +920,7 @@ mailcap-mime-extensions (".htm" . "text/html") (".html" . "text/html") (".icon" . "image/x-icon") + (".ics" . "text/calendar") (".ief" . "image/ief") (".jpg" . "image/jpeg") (".macp" . "image/x-macpaint") -- 2.49.0 --=-=-=-- From unknown Tue Jun 17 22:27:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Steven Allen Subject: bug#78764: closed (Re: bug#78764: [PATCH] mailcap: Treat .ics files as text/calendar) Message-ID: References: <86zfeaqtuf.fsf@gnu.org> <871prq2b06.fsf@stebalien.com> X-Gnu-PR-Message: they-closed 78764 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 78764@debbugs.gnu.org Date: Sat, 14 Jun 2025 14:31:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1749911462-28571-1" This is a multi-part message in MIME format... ------------=_1749911462-28571-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #78764: [PATCH] mailcap: Treat .ics files as text/calendar which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 78764@debbugs.gnu.org. --=20 78764: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78764 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1749911462-28571-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 78764-done) by debbugs.gnu.org; 14 Jun 2025 14:30:28 +0000 Received: from localhost ([127.0.0.1]:39725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uQRtp-0007Kl-71 for submit@debbugs.gnu.org; Sat, 14 Jun 2025 10:30:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52188) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uQRtZ-0007Ev-Q3 for 78764-done@debbugs.gnu.org; Sat, 14 Jun 2025 10:30:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uQRtR-00006n-Uq; Sat, 14 Jun 2025 10:30:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vPGpl6JPCMDEk8u4f7rPxerR7INiAfGkV9dR8BUsX/A=; b=i/5FH7NFxXrJ +fXa2hgIw0B7w4MEC4rkRrPiWuTJiLY3ogPSAYNY2z3U5zKKCQYMNg3RriICRrDT4U+njve63I5wh 9l5HELPZzT/HH0HouBMGerVv0hDTjjno2c7vUHsk+okztvx6ZVIQh5XySz6bSZRmK9Fm33pJyMHR6 UprVZpXGBrmj0VrKnfJeihXVUu0OJ2AZVihweLtkRDxEMB3vWpD1RIOtcCwT7qJaeIih+bN/mpvak fSNz3jQa3eJVexpw0wuHAsY9jC8eMlGYhbnj+N8nPcXsFbQhBz3dJ0k7KPolhnJh/YyR6lutI+MMN KG/YRFVDVTCa6AgyXkBNEg==; Date: Sat, 14 Jun 2025 17:30:00 +0300 Message-Id: <86zfeaqtuf.fsf@gnu.org> From: Eli Zaretskii To: Steven Allen In-Reply-To: <871prq2b06.fsf@stebalien.com> (bug-gnu-emacs@gnu.org) Subject: Re: bug#78764: [PATCH] mailcap: Treat .ics files as text/calendar References: <871prq2b06.fsf@stebalien.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78764-done Cc: larsi@gnus.org, 78764-done@debbugs.gnu.org, wmperry@aventail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: William M. Perry , > Lars Magne Ingebrigtsen > Date: Wed, 11 Jun 2025 15:01:45 -0700 > From: Steven Allen via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Add a mapping from ".ics" to "text/calendar" to mailcap-mime-extensions > to ensure that iCalendar attachments are always previewed correctly, > even when their MIME type is incorrect (as it is for Google Calendar invites). Thanks, installed on the master branch, and closing the bug. ------------=_1749911462-28571-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Jun 2025 22:02:02 +0000 Received: from localhost ([127.0.0.1]:52716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uPTWD-0000kX-Ss for submit@debbugs.gnu.org; Wed, 11 Jun 2025 18:02:02 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57462) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uPTWB-0000jf-7b for submit@debbugs.gnu.org; Wed, 11 Jun 2025 18:01:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uPTW5-00058k-FG for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2025 18:01:53 -0400 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uPTW3-0001xC-Ba for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2025 18:01:53 -0400 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 869E72540190 for ; Wed, 11 Jun 2025 18:01:48 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 11 Jun 2025 18:01:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1749679308; x=1749765708; bh=0YG3dqHrgug8jRv7IYNAsvb8pwI2Su5R 3FKyBiJe+CE=; b=jG4f/SSheZjo2m49xBvdjh/G4fM3D+HhxAqduWfsA8EQdjz7 hdcTr0CRfrA4NOCSkpEqdoB2QhOzUlamDXgctz/Fcpu49y8Wp3ignzGCU1DRQnw+ LnlLDMAfiyM6c3WCTgUoFtCrjeeFXCTEKjNWN2iKcC/4kda6t3ND8UUzQZGFJVos GV/x4Iqol3yc6CX4gu0JAdpqhxO537XdiLFxM3q6Bbg+FXruoL72zCAe6+CXWyil J5SPG/C1m9h7gJAyaoqjlqsXFRg/t8VfnE8pssGkE3glels7jqtgdnUBXxQmY6x1 LNkQ8o9TD2Fs6e90pWghsIwo23OO7P+pHeRV5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1749679308; x= 1749765708; bh=0YG3dqHrgug8jRv7IYNAsvb8pwI2Su5R3FKyBiJe+CE=; b=r BXqSCx0J27ZjhMaZ6iiEeiUHSMsUgw23DYZcNcmrjVCCIejl1Z8M7AYku1RE33aY Vv/nbRZxKm+Xlvnte0aZ+aXVNni9ztyzK4QUZI9xJnVuE0aGeZCkQfPTLQhqJTTa ViQdY3PPITdBpUPgR6w72Wz5cJF+kdxa00ic2mGAOAma7HL5LesKfm0SqRlhWHtY aq4u2rWEHP4gLcr0nFC6z/ZPtY8JrzkRbUeLDNa8aYMr1izvEzX8csCMtixha3Bn BQ8AZSc0pvIwVNmXoEbGiReidN2X73s5tETTZwOinGYlie9XjkJrS/kfrj1t//FH dH2mOpmPzaadbXmrv1KWg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugddufeeffecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvuf ffkfggtgesmhdtreertddttdenucfhrhhomhepufhtvghvvghnucetlhhlvghnuceoshht vghvvghnsehsthgvsggrlhhivghnrdgtohhmqeenucggtffrrghtthgvrhhnpeekffffgf evteehtdeiffelffegkedvieeigeehfedtteejkeefhfevtddtkeefffenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsthgvvhgvnhesshhtvg gsrghlihgvnhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhht pdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: ie8a146a7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 11 Jun 2025 18:01:47 -0400 (EDT) From: Steven Allen To: bug-gnu-emacs@gnu.org Subject: [PATCH] mailcap: Treat .ics files as text/calendar X-Debbugs-Cc: William M. Perry , Lars Magne Ingebrigtsen Date: Wed, 11 Jun 2025 15:01:45 -0700 Message-ID: <871prq2b06.fsf@stebalien.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=202.12.124.154; envelope-from=steven@stebalien.com; helo=fhigh-b3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --=-=-= Content-Type: text/plain Tags: patch Add a mapping from ".ics" to "text/calendar" to mailcap-mime-extensions to ensure that iCalendar attachments are always previewed correctly, even when their MIME type is incorrect (as it is for Google Calendar invites). In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.18.4) of 2025-06-11 built on Laptop Repository revision: 87244ef1661f9e9d7c08f65047551e8a34cd92b2 Repository branch: makepkg Windowing system distributor 'The X.Org Foundation', version 11.0.12101016 System Description: Arch Linux Configured using: 'configure 'CPPFLAGS=-I/run/user/1000/build/emacs-git/src/mps-git/build/include ' 'LDFLAGS=-L/run/user/1000/build/emacs-git/src/mps-git/build/lib -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto' --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-modules --without-m17n-flt --without-selinux --without-pop --without-gconf --disable-gc-mark-trace --with-mps=yes --enable-link-time-optimization --with-native-compilation=yes --with-xinput2 --with-x-toolkit=no --without-toolkit-scroll-bars --without-xaw3d --without-gsettings --with-cairo-xcb --without-xft --with-sound=no --with-tree-sitter --without-gpm --without-compress-install '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fomit-frame-pointer -fno-math-errno -fno-trapping-math -fno-math-errno -fno-trapping-math -flto=auto'' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-mailcap-Treat-.ics-files-as-text-calendar.patch >From e77702cc5ce09b48ad978ced4832c56e0bc2b05a 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". --- lisp/net/mailcap.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el index 7e69826160e..b80baab97d5 100644 --- a/lisp/net/mailcap.el +++ b/lisp/net/mailcap.el @@ -920,6 +920,7 @@ mailcap-mime-extensions (".htm" . "text/html") (".html" . "text/html") (".icon" . "image/x-icon") + (".ics" . "text/calendar") (".ief" . "image/ief") (".jpg" . "image/jpeg") (".macp" . "image/x-macpaint") -- 2.49.0 --=-=-=-- ------------=_1749911462-28571-1--