From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +BSjHV8YvWXYhAEA62LTzQ:P1 (envelope-from ) for ; Fri, 02 Feb 2024 17:29:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +BSjHV8YvWXYhAEA62LTzQ (envelope-from ) for ; Fri, 02 Feb 2024 17:29:19 +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=GybkFkIh; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706891359; 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=ARFJDzvZCE95wFfZz/LGrnmtYXYGSp5qKlMrAqsaWAM=; b=AJUpcy2TWGopl3Qg3KbP0rhPVwb7aMWQXpKEwuMSVOc/xWDjjACEoU1mPW0gjWCMG/r0f9 jLkndny4I8K3FckLYF+NoGsYBu8h/47DIM3hOhgfAahLOZubSTuZav1sqdtkhv4itNGV42 xTvtqs3HtngUtKvwcQz9Lr1cTDo2f6YmbukulAgfeqRVt5ijbxs7cqxYNpDY+20EZRBt3+ BSadKLNR3q0o5PViJHk/xg2ZJWKq0JCUFeppjQgZoW+38y+ohHo/BzlR6Xktehd7HyJevO CDSlATRXUnqYi6xWwwq5f7vcjljA3XPYFnrP9YmQjjpt1wQwYQfN2T37A87nFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=GybkFkIh; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706891359; a=rsa-sha256; cv=none; b=FX0xNUbin5PWi3Gs+ogy/uwvPMXlo9GPxsaMEkdIT6c+MFWM6/AM5NfMMPFoDv+R9Lyu/x pDX9H9zKh5kK34gghIGkx1FBXB79Snyq4k7eHVHm5vbnkfCwBW+Cetwhyw4gc6WJ6Ilxdz AU4ZF/abmYXWSBlYiId9A7tKSCGx5T1aWUCJwD0QdJ0/+F2Wmw9TtFqxMR06xixj8QL6dA GNpaI+I3UHSY+vUUA4gr8Yy/thzH9EBFX9O299KYIKVbZcHLPWGLlSO1FCpWh5jSOnqsvq 8XCZby7qfdw0ZFP1Li7KzdGr73qZydn2Dqbuu/ZRiooY8SbivokV5wAIMgC5fg== 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 4836539374 for ; Fri, 2 Feb 2024 17:29:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVwOv-000502-NS; Fri, 02 Feb 2024 11:28:26 -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 1rVwOu-0004zC-8i for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 11:28:24 -0500 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVwOr-0005lM-25 for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 11:28:22 -0500 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-51124d43943so3638457e87.2 for ; Fri, 02 Feb 2024 08:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706891299; x=1707496099; darn=gnu.org; h=in-reply-to:mail-followup-to:from:references:cc:to:content-language :subject:user-agent:mime-version:date:message-id:sender:from:to:cc :subject:date:message-id:reply-to; bh=ARFJDzvZCE95wFfZz/LGrnmtYXYGSp5qKlMrAqsaWAM=; b=GybkFkIh7s4T5AgfplMpTeGj4oRasXUopCE6VtM+hdD2ALaAvoeiaiwAibHXowsmfe qFESE7o3Ih7aCwWlIMfslEBM7ETpDUuWSriTw6kU9FYKqKdbQxwF+8peo4OCBsyvrXK8 EMSgz+EBB8kLOptEjd8dpp4YBtYzfI8tc+dei7k0SJs4b9q7i+OSo24oEFvf1XkutuOn v57PopImY2Ug61zbhiDhNkgvh+iHmazcaBiqkPtgqQTABMS15dJWbgTyrkMEL52FqE72 efRd7PuvgHbbwG+RqPeax3MHWHt9FESHTbeIKvU+mFsGcg9FW+qFB6tTD+Wp/w7mOjpH v/yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706891299; x=1707496099; h=in-reply-to:mail-followup-to:from:references:cc:to:content-language :subject:user-agent:mime-version:date:message-id:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ARFJDzvZCE95wFfZz/LGrnmtYXYGSp5qKlMrAqsaWAM=; b=KRCag/qfoM6h0O3yB9E+2c1zTKbG2y5qA5sEkCzpHCDc6IKxGBrsKIdR1uqaNtP/lq LVtnhmNixAD7Om5gcAOePKFvsxx5fI7JkXAvaR6weF4OVbhuKk9OXC9GaqgAF1tTBUBC WOP5UeGVaeUYEsvyTDdkP5v+sm3zoRPFR4qPRsB1JV+TBJcZfceiT93Juo2kQdSGpEAx pFw2zK+EVc0KS5kr9yPsCWgzD9uQNcGQhcxfnnfsj2ZnbUP122aQdhzOXjN/XtTqh4QP NEsw59YC+2Rhk5C53URPs+/g+76gvNjwaCBJM9/F96PRzO0ZCHI7D+Wjea3Jon7fE6em UwCw== X-Gm-Message-State: AOJu0YwQ6K1e+ETCxs3zi6S47L41LOjrKSZQ+muA19XBqmH27SK6+3qF eF2Ais478GiNtlCZbGANk0FRPtka90c0HpwENdsk/UECs6ip0N2bp0qSzFvEvmw= X-Google-Smtp-Source: AGHT+IHf60cb0nNZGTAnhx8IwkPMV9j7lM4HFgUEQpCo0UzS9/9lgxU6k0W3yO3PMpWTpwPIvT6y2g== X-Received: by 2002:ac2:4856:0:b0:50e:558e:1259 with SMTP id 22-20020ac24856000000b0050e558e1259mr1466042lfy.19.1706891298612; Fri, 02 Feb 2024 08:28:18 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCW53hzPOzgzqQwDV4Y3BqECbq3L9mTzSS5sVQn3VsQ5e9QvWTPPsOWORExISDc4KI0eWkC83Eahfwzo+HHZG9khm/mM4Rw= Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id a2-20020a056512200200b00510179dfd8asm343026lfb.293.2024.02.02.08.28.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Feb 2024 08:28:18 -0800 (PST) Content-Type: multipart/mixed; boundary="------------XvoEQ5YvCYu2UueGTfofSJJz" Message-ID: <1882c330-a58a-4c0a-adf1-6801e09f3b81@gmail.com> Date: Fri, 2 Feb 2024 23:28:17 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: bug#68687: [PATCH v2] Use text/org media type Content-Language: en-US, ru-RU 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> <4fbab9e6-a538-4fed-8148-ec3bb35a9107@gmail.com> From: Max Nikulin Mail-Followup-To: Stefan Kangas , 68687@debbugs.gnu.org, emacs-orgmode@gnu.org In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=manikulin@gmail.com; helo=mail-lf1-x131.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: 3.45 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: 3.45 X-Migadu-Queue-Id: 4836539374 X-TUID: VrrDmZYON1FC This is a multi-part message in MIME format. --------------XvoEQ5YvCYu2UueGTfofSJJz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit I am sending an updated version of the patch, earlier I missed one occurrence of text/org. I am leaving it up to you the decision concerning mailcap.el. On 02/02/2024 14:09, Stefan Kangas wrote: > 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 I do not mind. I just do not see real reasons to do so taking into account applicaion/vnd.lotus-organizer in Emacs and text/org in XDG. >> Create ~/.mime.types. Debian's variant suggests it in the >> /etc/mime.types header. > > Is that documented somewhere in our documentation? Likely it is not. It is documented in man pages for various tools. In Emacs-27 mailcap.el was severely broken, so I do not expect detailed documentation. > 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. It has happened so that I has spent some time reading Python bug tracker concerning their mimetypes module. I suggest against doing it unconditionally. Give users controls what sources should be used and what priority each source should have (application internal mapping, system-wide configuration files, user configuration files, Windows registry, XDG files as possible future improvement). Inconsistencies are not uncommon, updates of the IANA registry are applied with different pace. > Taking a step back, how sure are we that IANA will accept this? Do they > typically accept taking over a previous designation? An alternative is to negotiate with maintainers of mime.types in RedHat and Debian. My first impression is that in the case of Debian it may take enough time before any reaction. I am unsure as well that IANA will agree to change media type for .org without approval from IBM. --------------XvoEQ5YvCYu2UueGTfofSJJz Content-Type: text/x-patch; charset=UTF-8; name="v2-0001-Use-text-org-media-type.patch" Content-Disposition: attachment; filename="v2-0001-Use-text-org-media-type.patch" Content-Transfer-Encoding: base64 RnJvbSA5ZjA5NTAwNzViYmZiZmMxZmYxMDgwZWU0MTBjNjZlMTk1MzE5N2Q3IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYXggTmlrdWxpbiA8bWFuaWt1bGluQGdtYWlsLmNv bT4KRGF0ZTogV2VkLCAyNCBKYW4gMjAyNCAyMToxNjoyOCArMDcwMApTdWJqZWN0OiBbUEFU Q0ggdjJdIFVzZSB0ZXh0L29yZyBtZWRpYSB0eXBlCgpBdm9pZCAieC0iIHByZWZpeCBkZXBy ZWNhdGVkIGJ5IHJmYz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