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 WK5sHqN2u2UUbwAA62LTzQ:P1 (envelope-from ) for ; Thu, 01 Feb 2024 11:46:59 +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 WK5sHqN2u2UUbwAA62LTzQ (envelope-from ) for ; Thu, 01 Feb 2024 11:46:59 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=S59r+uoW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1706784082; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KaknQWzm/mKh4Halj8pifv1pvXi4xE2y4mEjzawAKCU=; b=EbPgw5XNxX6tt+BzLFD11fxfFiFNQRrumMTvPo44im1ByctcrWH13uBF1jvXk15AjDOXao cS9E3FokNRM47Xjilk4mfei1En/zQMvbUXLV++cpCUpK21CkJqB49OQLTQ6m93GJe0uJWD 1Tm7nmsbNSEBq+cu2O4Kj6fy+bh6S9ov8Xn6aFCzqrcgHUjnUxsEd1rXQdrZjqyxcCgyt9 v+LyMVN2XDhIHRouH0R7f7eAfHzvs9/ZR7wikW6957iir5hHkYU+SYrQqiZm6YSD7LGjtW TJWu1KPoZ4Yjvw1r1glSpKY1+2V+JexxGGm1jjjVj46IA3kTB7ElwVXoqcvi6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=S59r+uoW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1706784082; a=rsa-sha256; cv=none; b=stPsZXfPdwOk4Wkk9mPpfYNnsivzfiELpMS/JnSt7SrD2IdbZteKe9Q7CYRuOZ6KM0bWHw nqCqramusZJkzst23jnMJfU/TpUskM/7TbDOelg1K9clwJmIr4v8dr1qlu6caQX9gJpi4u HFd/O7iNqMnNyFS7QZZWuMl7feDDGgjwY4dDMAWaRnqwjM86dA6b0tFve+5HH1tXQHjUXY siY73D4LhgFEyXCGNJqYDU9xlrFWiOf9vylRGNCKze8bMpDHLHh9hAfTCr+nPGPRVgjthv cVGL2VvOhNCN7pZ9dqrsPTf1woYVE2T7Knyd8HCDhVVmqrV2JAqjdkkRfyMlkw== 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 3F20836758 for ; Thu, 1 Feb 2024 11:41:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVUUg-0008VB-AB; Thu, 01 Feb 2024 05:40:30 -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 1rVUUe-0008Pl-32 for emacs-orgmode@gnu.org; Thu, 01 Feb 2024 05:40:28 -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 1rVUUc-000612-HU for emacs-orgmode@gnu.org; Thu, 01 Feb 2024 05:40:27 -0500 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-51117bfd452so1298511e87.3 for ; Thu, 01 Feb 2024 02:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706784023; x=1707388823; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=KaknQWzm/mKh4Halj8pifv1pvXi4xE2y4mEjzawAKCU=; b=S59r+uoWokj2yBz6MkcPrA1bknwnOK0ELYfAi5vCi9jWpF/F1pwSKaAMtjERN1L6Vr aTDJUQtBzumFeNf/m7O/JPrFZUQCRkRO59DqxiHRvBAtR92LAJmZKChWSbMrlJV7hhQT j4gZNMhhuGZwlMFvcPOPcwIG+fyTnme3HSigu6Dy/qo3mVGn/XMGwW78s2D8pDSSTFxt 48+n2GgpFNWMg9lBKLhmcvQejpzlr5AfJqgR93Dt0OW6rJHhSPeSRHskXZlf8jImfIuK mpQ/cZIAV0k3wjXZS+SaZalhYJtRIApJ80pifevmWzqFCvEaT2WtWxh8166V2VRfTqgW AIOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706784023; x=1707388823; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KaknQWzm/mKh4Halj8pifv1pvXi4xE2y4mEjzawAKCU=; b=NxfdGiHp2HHVB7HRZUbD5TneUDHQG7TDG9a/BDhItikELc6sotBijyvDu1ncFC1fui UHExwDEctlDPEAsXU1W//13ZzaSjt11mKUBGwYoEqZ5MuiCQyVEWRVMHfRnzbav5m7zs sx/LWCzuW/mwBpY+F36sVfmVZZPme9gqnspkyyWsI/m3c/7oFw8qTTl/BFJDt5Y7nscd LIg5IonRtzgAckhFp2CMPRMw1FkFxrvx5pmuqLs1FsDW0OTjfXbpPZXzsymSCHtet1XM da+sO2Nves9ldD+F4rTE0Cv2U5lkdEVJhxOcMXs5RWjHOghM+9N+6ipRZVcb3OBYh6T1 77hQ== X-Gm-Message-State: AOJu0YxtzPuxbB8Cm/dZ1Jfqs5Gl7Hxc8d+gKVfiX4vO3PYF5I+XnB45 MgsSuZMV1sJCoepb9SYLE+HF8uh9/m3lxWR4TH5SqCPIq+XPOkPRReHw1yzqZHA= X-Google-Smtp-Source: AGHT+IHYPpgNuD3oYlJ9tPePyS9Wvh7gsNdvtCATMnvUXxmldf/w+iruczWpd7dUNeIBUMRfXNgA2A== X-Received: by 2002:a05:6512:4847:b0:510:25be:d7ae with SMTP id ep7-20020a056512484700b0051025bed7aemr1497396lfb.55.1706784022882; Thu, 01 Feb 2024 02:40:22 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUi6vKOdzADSBs4ow4E5zqqDNGQzxls0BRz/IGd8czrX++ljuus58VYz1UFnrc30kYtid4j/UV5a8hzHPt006nGIq0lFoU= Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id v13-20020a056512348d00b0051006cbce52sm2148856lfr.43.2024.02.01.02.40.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Feb 2024 02:40:22 -0800 (PST) Message-ID: <4fbab9e6-a538-4fed-8148-ec3bb35a9107@gmail.com> Date: Thu, 1 Feb 2024 17:40:21 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#68687: [PATCH] Use text/org media type To: Stefan Kangas , 68687@debbugs.gnu.org Cc: emacs-orgmode@gnu.org References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> Content-Language: en-US, ru-RU From: Max Nikulin Mail-Followup-To: Stefan Kangas , 68687@debbugs.gnu.org, emacs-orgmode@gnu.org In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=manikulin@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: 2.34 X-Spam-Score: 2.34 X-Migadu-Queue-Id: 3F20836758 X-Migadu-Scanner: mx12.migadu.com X-TUID: 7LFN7DuGZJWP 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")) > > With this patch, what happens if someone is emailing using an old > version of Emacs? Does that matter, or is this stuff based only on the > file ending? 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. Old mailers will continue sending messages with application/vnd.lotus-organizer, text/x-org, or text/org media type. > IOW, I'm asking if it is backwards-compatible to remove > "text/org", in either direction. I suggest to use text/org instead of text/x-org. > Will .org files be displayed in the > same way as before or not on both new and old versions? I do not see a better way toward consistency in respect to the media type. > I've noticed on my machine that .org files have been interpreted as > application/vnd.lotus-organizer. From my point of view, it is a reason to not bother concerning removing of "text/x-org" from `mailcap-mime-extensions' > Presumably that's due to some local > configuration in /etc/mime.types on my distro. Is that correct? There are 2 projects maintaining /etc/mime.types, they follows IANA registry, so have application/vnd.lotus-organizer. XDG shared-mime-info project (another media types DB, not /etc/mime.types) has text/org. > 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. > 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.