From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uA6hLlGVvGVeUAAA62LTzQ:P1 (envelope-from ) for ; Fri, 02 Feb 2024 08:10:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uA6hLlGVvGVeUAAA62LTzQ (envelope-from ) for ; Fri, 02 Feb 2024 08:10:09 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=iDHYJrZX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706857809; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YYzK/Og6nfmS7wfu4b3xg3yKAmy5TFKlrosR/FULk5w=; b=F6FhI0u1f8feCBHbj4BF/Z2APbxKGb0ACb/NNX8QbZCeKiApfLAKBG+CvxGbG1lvAVZ0wq xOQtkWcoLZRsyOsxdeshm0T5mvQuyAVuTqFm0vd9VxoZH3xb/6fmhfGy2OAY8g/OKngOBw ri4hM3K+W4BrvxiZNkg9bS+fQ+rw2QNJfoCc5m9U34EOERm/ndb17cYyif492M9TEfkIuz AUEquAg1MTDuwftQo63B+CONUpK5kXCFI3G2YL3P84T06cGh/arY1tw1dlHDudiyjl1m8s hGSax6BtcdMZTVj0jOtpjJoIKCT3ZzqvcGCevd+BfQv8YRbhHIp44gkyYf/57w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=iDHYJrZX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706857809; a=rsa-sha256; cv=none; b=axnXRVnQj61a1QJ28hLEU6HESOYVsmaLMaZuCFufx6Bs3bNTfGa/3CbQXzU8HVBsafW2xs fmBvhPH+IEbPvKTT3MMlmX7lxKAE92y2Hi5oKdAIksrIkTI4tRWTuV1ewS5DOYULF5hjAX ErOTV9fqAK3MIUOIpM8WLRHqqietL98G/1ed+gEvpAkX3MHZXQpy1znSIsi6JpLTxHJg6m z/HOZXzwMaeCr20X38jFm3XaCDds7fZj0piOCklUj3J4hyYfR555SrJKfwxoXxG9Vt1DEI OmjEwWoNmCI7EUfvAc4yF6kJN1q4p5MdcjQGRyf6lPoYiwlNMAbZfeuLmS09DA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 842BF321A7 for ; Fri, 2 Feb 2024 08:10:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVngM-00032r-TQ; Fri, 02 Feb 2024 02:09:50 -0500 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 1rVngK-00032e-UR for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 02:09:48 -0500 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVngJ-0002fz-9W for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 02:09:48 -0500 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-5113a362587so13759e87.2 for ; Thu, 01 Feb 2024 23:09:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706857784; x=1707462584; darn=gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=YYzK/Og6nfmS7wfu4b3xg3yKAmy5TFKlrosR/FULk5w=; b=iDHYJrZXIjfZVXGviMPubziJ4hodHYanYu2jgdgHfIuHe/xbPaiJTib3cJrylLeO7t 5w5R7ZS0vBfGLaVNa+1C5Ssj1FCfeZLxGWEV2ro+B98R0Tfe9aiXfZ6wwvrVFo1fnEJr pKZTtScjJ/ArAv16Cx3IFJjVEjJFsZu2/G7ETcEmTW8QlstxV88JbPEIBGjPX9QcyHdz jJuCma+HPur5Y7muQQks6YJOuAjviuNNo2KciKnXn8vhL52Opc8trkVHYIuHOTWLnbuD z/5lyLXGTDSjEGN+CazdWAWWj7DC/VTOowHpZPJyOLFZJZbmhx0uNJs6hU8r3wRtDtDn xXEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706857784; x=1707462584; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YYzK/Og6nfmS7wfu4b3xg3yKAmy5TFKlrosR/FULk5w=; b=Eai00Td2qwdbw9zg8XA+7FqCAddjSX6/XOljAiwH8t88PLeKLNWmXhBxLigyesx6KQ Iapg082MUzZarwmR09sfLUfphBuIRzQerIvya/vwEEJhu20xMB0FrW7yV+eRJaYVg0oF 3Uj6L5jhPXW2znAdqGN7szkqHF7HmIhsC2ainqtbwDvbvAGU5GB8ZgCjw1XPq6GsPwID OIolxXUeC1aZQNZcdadSnwWpl1EcKkDnc3pe4BU5Ixv2vcAMJTgejuoUh+H6of3II3+5 AmOhltXVgo8Ms4EIhwfa1ZZXVv13FMFmLwiFwuhKI6lVvka8sDdP3Z87sv+Jyq0DceC+ 3G9w== X-Gm-Message-State: AOJu0Yx2lJXPjyHCnKmpxisZ0Zut7TOSQQ9PtLRo5JQOEk4JW7I4lp1F Rw6Swk94dvHiw8upIM7DLHQeb3eskoIsnwjRWuCH53Nk2BQei7Xh9NDOdTZEQySzFrHmEH46zos un4A9TBMhsE/41Pw8/8J23rqZ5OA= X-Google-Smtp-Source: AGHT+IHgRvgGgWfn48a6tqek7GgEHT0QJB4rZfjmRNFjzgKioVZzidCchalRPQPb9GGoYDnPxz/4deyalc0IxzKBDsY= X-Received: by 2002:a2e:2a03:0:b0:2d0:8982:e1bc with SMTP id q3-20020a2e2a03000000b002d08982e1bcmr276226ljq.28.1706857783399; Thu, 01 Feb 2024 23:09:43 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 1 Feb 2024 23:09:42 -0800 From: Stefan Kangas In-Reply-To: <4fbab9e6-a538-4fed-8148-ec3bb35a9107@gmail.com> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <4fbab9e6-a538-4fed-8148-ec3bb35a9107@gmail.com> MIME-Version: 1.0 Date: Thu, 1 Feb 2024 23:09:42 -0800 Message-ID: Subject: Re: bug#68687: [PATCH] Use text/org media type To: Max Nikulin , 68687@debbugs.gnu.org Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=stefankangas@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.97 X-Spam-Score: -9.97 X-Migadu-Queue-Id: 842BF321A7 X-Migadu-Scanner: mx12.migadu.com X-TUID: wp3im0CwxTJi Max Nikulin writes: > On 01/02/2024 03:00, Stefan Kangas wrote: >> Max Nikulin writes: >>> +++ b/lisp/net/mailcap.el >>> @@ -989,7 +989,8 @@ (defvar mailcap-mime-extensions >>> (".jpe" . "image/jpeg") >>> (".jpeg" . "image/jpeg") >>> (".webp" . "image/webp") >>> - (".org" . "text/x-org")) >>> + ;; May be overridden by application/vnd.lotus-organizer in /etc/mime.types. >>> + (".org" . "text/org")) > > Org files are plain text files and have no specific signature that would > allow tools like libmagic to unambiguously distinguish them from other > text files. Rare files have explicit "# -*- mode: org-mode -*-" header. > So there is no other way besides file name extensions when a message is > composed or a file is served by a HTTP server. Clients should rely on > the Content-Type header. So old mailers will still use "Content-Type: text/x-org", and it is therefore premature to remove that entry. I'm not sure about the urgency in starting to send out "text/org" at this stage. It will just lead to old versions of Emacs displaying org attachments incorrectly in more cases, I think? So why not: 1. Add support for _receiving_ "text/org" in Emacs 30 2. Wait with _sending_ "text/org" until it is formally accepted by IANA ? In Emacs <29, perhaps Org mode could update the relevant variables to include "text/org", too? >> Is it >> documented somewhere how to override that system configuration in Emacs? > > Create ~/.mime.types. Debian's variant suggests it in the > /etc/mime.types header. Is that documented somewhere in our documentation? >> But thinking about this more, why not do that unconditionally for users? >> Lotus Organizer is dead, long gone, and not really relevant to anyone, >> certainly not to the overwhelming majority of Emacs users. > > Ideally text/org should be registered in IANA, so all applications could > use consistent mapping. Prerequisites have been discussed already. Yes, that would be best. While waiting for that to happen, why not do what I proposed (override it unconditionally in Emacs)? It should be more useful for Emacs users, if nothing else. Taking a step back, how sure are we that IANA will accept this? Do they typically accept taking over a previous designation?