From unknown Tue Jun 17 01:29:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68687 <68687@debbugs.gnu.org> To: bug#68687 <68687@debbugs.gnu.org> Subject: Status: [PATCH] Use text/org media type Reply-To: bug#68687 <68687@debbugs.gnu.org> Date: Tue, 17 Jun 2025 08:29:45 +0000 retitle 68687 [PATCH] Use text/org media type reassign 68687 emacs submitter 68687 Max Nikulin severity 68687 wishlist tag 68687 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 24 09:44:25 2024 Received: (at submit) by debbugs.gnu.org; 24 Jan 2024 14:44:25 +0000 Received: from localhost ([127.0.0.1]:44839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSeUL-0001JW-7p for submit@debbugs.gnu.org; Wed, 24 Jan 2024 09:44:25 -0500 Received: from lists.gnu.org ([2001:470:142::17]:38530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSeUI-0001JB-8V for submit@debbugs.gnu.org; Wed, 24 Jan 2024 09:44:23 -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 1rSeTy-0006gL-A9 for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 09:44:03 -0500 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSeTw-0006n1-DX for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 09:44:02 -0500 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-5100ed2b33dso1420271e87.0 for ; Wed, 24 Jan 2024 06:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706107438; x=1706712238; darn=gnu.org; h=in-reply-to:from:to:references:content-language:subject:user-agent :mime-version:date:message-id:sender:from:to:cc:subject:date :message-id:reply-to; bh=LKryR2pBy8v2qeOLgysMOQ7nLeQQRP2wvDdhRskC37Y=; b=j24+rBe5z3Y8DQiLRbk/+lHycDutKwN/rXf+lduvJSWYeiks9oanWAq2UplScZz9Mc 0GqHwoJMLEfX1iWPNsHkfssKf7hUYQLGlVICJglpYHKR/fd/YNeTAGI8N9Nrl4eUHp4F VUmu6G6QogkUPIPDWukhh/fStExr4m6y2+3W84wBJW9gKAb0HoP74sK39mX7Ynbz3IP8 hGZcOgPXUtcFgkDiMJPsX/4QnHITE2gNaiZZD6UTvofQXVMLsAMRwh8V4R0XzWx6PJVk 0ZqovsbykpwfPYBiYEOqyzkgliZh/V0iSALeTv9xvziv/PQUqT6yJEGUcz2W5cbMZYTV fsQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706107438; x=1706712238; h=in-reply-to:from:to:references: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=LKryR2pBy8v2qeOLgysMOQ7nLeQQRP2wvDdhRskC37Y=; b=Zcos8DI9KxxLlfSwhGfmQjokqKSBVFTX9Y4guZ0NBO925jYipc9XNEMUCsIClyihDG JxUY1uaYZw2WHRpBD8PAscUGbllzvPtd/0hCRzIK50oZUNsTd4BIlRMcHjS3d8OcSixV ZBKl8kfSxFbHxZS/jrScASQP2cEIoCs2NJVLQGIQDzL2u9lvXbtmcBrgXqr7FZpao5S2 vc+dpd/cZW+Sa1++SHn6nD2NvQVDNDJ1JXyVfpudau1EDoqaalqzl98r8aWEfSIRWZ3X q2pf1YaYT3WXmuhTMrWun0qJDDl6Ig2vqt7hDlXuViOKkVYMZ3HhJAZrEFujrvsklWE5 I5NA== X-Gm-Message-State: AOJu0Yyg5YOWH1KGxagoqQ09tSDgTwud1XF4RVtPMV4HUy6pTx6SCdjY PzDNfcvUePJTUFPiatD3KQXsx9vsoug/+KkX1H1uMnkvAPzLjEkFSeo7hpuU X-Google-Smtp-Source: AGHT+IGptmH6Zrg3RWa5i759HJm4mqMxxZKaZEj8YekPe2mPAQ8N2waOPIyIMcYfM9H4Z38hA+OzTg== X-Received: by 2002:a05:6512:748:b0:50e:b19c:94d7 with SMTP id c8-20020a056512074800b0050eb19c94d7mr3220420lfs.106.1706107437633; Wed, 24 Jan 2024 06:43:57 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id k14-20020ac24f0e000000b0050e7e92d211sm2620230lfr.45.2024.01.24.06.43.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jan 2024 06:43:56 -0800 (PST) Content-Type: multipart/mixed; boundary="------------p7e6ZEQbkUSvqUmp0u2gMop4" Message-ID: <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> Date: Wed, 24 Jan 2024 21:43:55 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH] Use text/org media type Content-Language: en-US, ru-RU References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> X-Debbugs-Cc: emacs-orgmode@gnu.org To: bug-gnu-emacs@gnu.org From: Max Nikulin In-Reply-To: <8734uqpvgn.fsf@tec.tecosaur.net> Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=manikulin@gmail.com; helo=mail-lf1-x129.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-Spam-Score: 1.0 (+) 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.0 (/) This is a multi-part message in MIME format. --------------p7e6ZEQbkUSvqUmp0u2gMop4 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, I suggest to make the media type used for Org mode files consistent with the one used by XDG https://gitlab.freedesktop.org/xdg/shared-mime-info Currently Emacs has text/x-org, however "x-" prefix is not recommended by IANA any more, see https://www.rfc-editor.org/rfc/rfc6648 "Deprecating the "X-" Prefix and Similar Constructs in Application Protocols" Ideally somebody should file a request to IANA to register the text/org media type. https://www.iana.org/assignments/media-types/media-types.xhtml However I have no idea concerning a conflict due to the .org file name suffix. It was used in the past by early versions of Lotus Organizer. https://www.iana.org/assignments/media-types/application/vnd.lotus-organizer I am unsure if gnus-related code should be committed to some other repository at first. I am not a gnus user, so I do not mind if an alternative change will be committed. See also emacs-orgmode: Org mode MIME type. Sun, 21 Jan 2024 20:56:15 +0700. https://list.orgmode.org/6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com --------------p7e6ZEQbkUSvqUmp0u2gMop4 Content-Type: text/x-patch; charset=UTF-8; name="0001-Use-text-org-media-type.patch" Content-Disposition: attachment; filename="0001-Use-text-org-media-type.patch" Content-Transfer-Encoding: base64 RnJvbSA4YjcxMzkzNjI1ZjExNTkwZTk5ODk2ODA4YmJkMDRlZDgzZjc5MTdlIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYXggTmlrdWxpbiA8bWFuaWt1bGluQGdtYWlsLmNv bT4KRGF0ZTogV2VkLCAyNCBKYW4gMjAyNCAyMToxNjoyOCArMDcwMApTdWJqZWN0OiBbUEFU Q0hdIFVzZSB0ZXh0L29yZyBtZWRpYSB0eXBlCgpBdm9pZCAieC0iIHByZWZpeCBkZXByZWNh dGVkIGJ5IHJmYzY2NDggZm9yIE9yZyBtb2RlIG1lZGlhIHR5cGUuCiogbGlzcC9uZXQvbWFp bGNhcC5lbCAobWFpbGNhcC1taW1lLWV4dGVuc2lvbnMpOgoqIGxpc3AvZ251cy9tbS11dS5l bCAobW0tdXUtb3JnLXNyYy1jb2RlLWJsb2NrLWV4dHJhY3QpOiBSZXBsYWNlCnRleHQveC1v cmcgYnkgdGV4dC9vcmcuCiogbGlzcC9nbnVzL21tLWRlY29kZS5lbCAobW0taW5saW5lLW1l ZGlhLXRlc3RzKTogQWxsb3cgdGV4dC9vcmcgaW4KYWRkaXRpb24gdG8gdGV4dC94LW9yZy4K Ck1ha2UgbWVkaWEgdHlwZSBkZWZpbmVkIGZvciBPcmcgbW9kZSBjb25zaXN0ZW50IHdpdGgK PGh0dHBzOi8vZ2l0bGFiLmZyZWVkZXNrdG9wLm9yZy94ZGcvc2hhcmVkLW1pbWUtaW5mbz4K ClNlZSBlbWFjcy1vcmdtb2RlOiBPcmcgbW9kZSBNSU1FIHR5cGUuIFN1biwgMjEgSmFuIDIw MjQgMjA6NTY6MTUgKzA3MDAuCmh0dHBzOi8vbGlzdC5vcmdtb2RlLm9yZy82ZDk0ZmZmNC00 ZDMwLTQxMjEtYmZkMS1mMjY3Y2I1YjYzN2NAZ21haWwuY29tCi0tLQogbGlzcC9nbnVzL21t LWRlY29kZS5lbCB8IDEgKwogbGlzcC9nbnVzL21tLXV1LmVsICAgICB8IDIgKy0KIGxpc3Av bmV0L21haWxjYXAuZWwgICAgfCAzICsrLQogMyBmaWxlcyBjaGFuZ2VkLCA0IGluc2VydGlv bnMoKyksIDIgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9nbnVzL21tLWRlY29k ZS5lbCBiL2xpc3AvZ251cy9tbS1kZWNvZGUuZWwKaW5kZXggZjkxNzU1ZTk2N2IuLmNhZTcz N2U1YTNlIDEwMDY0NAotLS0gYS9saXNwL2dudXMvbW0tZGVjb2RlLmVsCisrKyBiL2xpc3Av Z251cy9tbS1kZWNvZGUuZWwKQEAgLTI0Niw2ICsyNDYsNyBAQCAoZGVmY3VzdG9tIG1tLWlu bGluZS1tZWRpYS10ZXN0cwogICAgICgidGV4dC94LXNoIiBtbS1kaXNwbGF5LXNoZWxsLXNj cmlwdC1pbmxpbmUgaWRlbnRpdHkpCiAgICAgKCJhcHBsaWNhdGlvbi9qYXZhc2NyaXB0IiBt bS1kaXNwbGF5LWphdmFzY3JpcHQtaW5saW5lIGlkZW50aXR5KQogICAgICgidGV4dC9kbnMi IG1tLWRpc3BsYXktZG5zLWlubGluZSBpZGVudGl0eSkKKyAgICAoInRleHQvb3JnIiBtbS1k aXNwbGF5LW9yZy1pbmxpbmUgaWRlbnRpdHkpCiAgICAgKCJ0ZXh0L3gtb3JnIiBtbS1kaXNw bGF5LW9yZy1pbmxpbmUgaWRlbnRpdHkpCiAgICAgKCJ0ZXh0L2h0bWwiCiAgICAgIG1tLWlu bGluZS10ZXh0LWh0bWwKZGlmZiAtLWdpdCBhL2xpc3AvZ251cy9tbS11dS5lbCBiL2xpc3Av Z251cy9tbS11dS5lbAppbmRleCAzYzdlM2NiZGYxYS4uYjEwZGEwYzE0M2EgMTAwNjQ0Ci0t LSBhL2xpc3AvZ251cy9tbS11dS5lbAorKysgYi9saXNwL2dudXMvbW0tdXUuZWwKQEAgLTM5 NCw3ICszOTQsNyBAQCAoZGVmdW4gbW0tdXUtZW1hY3Mtc291cmNlcy1leHRyYWN0ICgpCiAK IChkZWZ1biBtbS11dS1vcmctc3JjLWNvZGUtYmxvY2stZXh0cmFjdCAoKQogICAobW0tbWFr ZS1oYW5kbGUgKG1tLXV1LWNvcHktdG8tYnVmZmVyIHN0YXJ0LXBvaW50IGVuZC1wb2ludCkK LQkJICAnKCJ0ZXh0L3gtb3JnIiAoY2hhcnNldCAuIGdudXMtZGVjb2RlZCkpKSkKKwkJICAn KCJ0ZXh0L29yZyIgKGNoYXJzZXQgLiBnbnVzLWRlY29kZWQpKSkpCiAKIChkZWZ2YXIgZ251 cy1uZXdzZ3JvdXAtbmFtZSkKIApkaWZmIC0tZ2l0IGEvbGlzcC9uZXQvbWFpbGNhcC5lbCBi L2xpc3AvbmV0L21haWxjYXAuZWwKaW5kZXggNWZmNzVkZWI0ZTYuLjkwMDA5OTQzM2M0IDEw MDY0NAotLS0gYS9saXNwL25ldC9tYWlsY2FwLmVsCisrKyBiL2xpc3AvbmV0L21haWxjYXAu ZWwKQEAgLTk4OSw3ICs5ODksOCBAQCAoZGVmdmFyIG1haWxjYXAtbWltZS1leHRlbnNpb25z CiAgICAgKCIuanBlIiAgIC4gImltYWdlL2pwZWciKQogICAgICgiLmpwZWciICAuICJpbWFn ZS9qcGVnIikKICAgICAoIi53ZWJwIiAgLiAiaW1hZ2Uvd2VicCIpCi0gICAgKCIub3JnIiAg IC4gInRleHQveC1vcmciKSkKKyAgICA7OyBNYXkgYmUgb3ZlcnJpZGRlbiBieSBhcHBsaWNh dGlvbi92bmQubG90dXMtb3JnYW5pemVyIGluIC9ldGMvbWltZS50eXBlcy4KKyAgICAoIi5v cmciICAgLiAidGV4dC9vcmciKSkKICAgIkFuIGFsaXN0IG9mIGZpbGUgZXh0ZW5zaW9ucyBh bmQgY29ycmVzcG9uZGluZyBNSU1FIGNvbnRlbnQtdHlwZXMuCiBUaGlzIGV4aXN0cyBmb3Ig eW91IHRvIGN1c3RvbWl6ZSB0aGUgaW5mb3JtYXRpb24gaW4gTGlzcC4gIEl0IGlzCiBtZXJn ZWQgd2l0aCB2YWx1ZXMgZnJvbSBtYWlsY2FwIGZpbGVzIGJ5IGBtYWlsY2FwLXBhcnNlLW1p bWV0eXBlcycuIikKLS0gCjIuMzkuMgoK --------------p7e6ZEQbkUSvqUmp0u2gMop4-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 25 18:10:43 2024 Received: (at 68687) by debbugs.gnu.org; 25 Jan 2024 23:10:43 +0000 Received: from localhost ([127.0.0.1]:49572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT8rr-0004y9-04 for submit@debbugs.gnu.org; Thu, 25 Jan 2024 18:10:43 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:48531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT8ro-0004xv-Er for 68687@debbugs.gnu.org; Thu, 25 Jan 2024 18:10:41 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40eacb4bfa0so54198695e9.1 for <68687@debbugs.gnu.org>; Thu, 25 Jan 2024 15:10:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706224228; x=1706829028; darn=debbugs.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=0zUSkeZjd/i19VwiSoMr8yNdE/6heU9C42DngNtMnz8=; b=U+JuWMURYeFleXyWFbSfWwEDUZIl9c1VFak//M5XXFMCtKMYknnYitxTn/jWTew1QH 7AWD8zQaHDxVFw3mjUQlfr5X+Bg2N3e3HoXNPpwuz6ysaSKtVaBREetknrso3eBtfy5C i/IlnQf+8BlpQmAA857BtofjB5JPMYlRYxUzN/NuDXJqE9pIOYMsipIOnWzGMOD4Z/2C R4MWY0slaHbfSIZOAUDjeWAWji/6/N21kCRjA0T9XOMQ3uID3b9/ZDqoyBr9N3DQ51Q3 s+y2+RCa4bcC2r34E7DGyGwDgwjhqbBF94rvxyZfUTlLd7PNWEsmG57Oq/1gmRSQXfqF Cjxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706224228; x=1706829028; 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=0zUSkeZjd/i19VwiSoMr8yNdE/6heU9C42DngNtMnz8=; b=CKwjZAtSmpYi9DXl7epXwt+l9WHay4lubTd+mhy3C7Pzg1EX2bR5RtqF/mDSWMNZ2m 6KzedduLf6qEgQg7bagHupIYyAl9irXGaEN/dv7TClm5RCBY5FD3DcUUVSGE+z2w3QwA hETSzcbBg8+YNbCNQoEsZG0RhORsav6MnacD1+7oyZOEhqLyzUwFVGziPUszlXCIoixh HJsta+0LsAhGkI3LXKEMDBi4l4Dq9fd9/BQIX24KJFvxFaEbIOxNd+M/YXGyt4wCj63D 1lkP6lSJz07qF0qYkN+CEW7GRJn0YW2+5ZZLJ+RTTNIO/1DiHyWDvIKgziMzSxKnl4vN yXdw== X-Gm-Message-State: AOJu0YzygBym+5ecltTl71Za9L3eqRiB9/PdT7Ay/EPwRbbfNNP0NFze EYCM4xDOxb7uALa0pwwRMOF03rkNshYNZ3vpmfExjP+jwGzigUHcHARdFh2cy5SncQl9Qki4Fj1 ZobVwaWvg4qyOGw1hy+PpAb/FMYk= X-Google-Smtp-Source: AGHT+IEwuVLJLkimJwOon7zgOYvOsjffyQII4uBxbIOVgT3fNE8VlAYrSremOEfEWPM32B7JfNc+aIuCYR8D9T5Twjc= X-Received: by 2002:a05:600c:6b01:b0:40e:8cc2:7492 with SMTP id jn1-20020a05600c6b0100b0040e8cc27492mr254886wmb.80.1706224228303; Thu, 25 Jan 2024 15:10:28 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 25 Jan 2024 15:10:27 -0800 From: Stefan Kangas In-Reply-To: <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> MIME-Version: 1.0 Date: Thu, 25 Jan 2024 15:10:27 -0800 Message-ID: Subject: Re: bug#68687: [PATCH] Use text/org media type To: Max Nikulin , 68687@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: emacs-orgmode@gnu.org 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: -1.0 (-) Max Nikulin writes: > Hi, > > I suggest to make the media type used for Org mode files consistent with > the one used by XDG https://gitlab.freedesktop.org/xdg/shared-mime-info > Currently Emacs has text/x-org, however "x-" prefix is not recommended > by IANA any more, see https://www.rfc-editor.org/rfc/rfc6648 > "Deprecating the "X-" Prefix and Similar Constructs in Application > Protocols" > > Ideally somebody should file a request to IANA to register the text/org > media type. > https://www.iana.org/assignments/media-types/media-types.xhtml Eli, Ihor, what do you think? > However I have no idea concerning a conflict due to the .org file name > suffix. It was used in the past by early versions of Lotus Organizer. > https://www.iana.org/assignments/media-types/application/vnd.lotus-organizer > > I am unsure if gnus-related code should be committed to some other > repository at first. I am not a gnus user, so I do not mind if an > alternative change will be committed. > > See also > emacs-orgmode: Org mode MIME type. Sun, 21 Jan 2024 20:56:15 +0700. > https://list.orgmode.org/6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com > From 8b71393625f11590e99896808bbd04ed83f7917e Mon Sep 17 00:00:00 2001 > From: Max Nikulin > Date: Wed, 24 Jan 2024 21:16:28 +0700 > Subject: [PATCH] Use text/org media type > > Avoid "x-" prefix deprecated by rfc6648 for Org mode media type. > * lisp/net/mailcap.el (mailcap-mime-extensions): > * lisp/gnus/mm-uu.el (mm-uu-org-src-code-block-extract): Replace > text/x-org by text/org. > * lisp/gnus/mm-decode.el (mm-inline-media-tests): Allow text/org in > addition to text/x-org. > > Make media type defined for Org mode consistent with > > > See emacs-orgmode: Org mode MIME type. Sun, 21 Jan 2024 20:56:15 +0700. > https://list.orgmode.org/6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com > --- > lisp/gnus/mm-decode.el | 1 + > lisp/gnus/mm-uu.el | 2 +- > lisp/net/mailcap.el | 3 ++- > 3 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el > index f91755e967b..cae737e5a3e 100644 > --- a/lisp/gnus/mm-decode.el > +++ b/lisp/gnus/mm-decode.el > @@ -246,6 +246,7 @@ (defcustom mm-inline-media-tests > ("text/x-sh" mm-display-shell-script-inline identity) > ("application/javascript" mm-display-javascript-inline identity) > ("text/dns" mm-display-dns-inline identity) > + ("text/org" mm-display-org-inline identity) > ("text/x-org" mm-display-org-inline identity) > ("text/html" > mm-inline-text-html > diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el > index 3c7e3cbdf1a..b10da0c143a 100644 > --- a/lisp/gnus/mm-uu.el > +++ b/lisp/gnus/mm-uu.el > @@ -394,7 +394,7 @@ (defun mm-uu-emacs-sources-extract () > > (defun mm-uu-org-src-code-block-extract () > (mm-make-handle (mm-uu-copy-to-buffer start-point end-point) > - '("text/x-org" (charset . gnus-decoded)))) > + '("text/org" (charset . gnus-decoded)))) > > (defvar gnus-newsgroup-name) > > diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el > index 5ff75deb4e6..900099433c4 100644 > --- a/lisp/net/mailcap.el > +++ 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")) > "An alist of file extensions and corresponding MIME content-types. > This exists for you to customize the information in Lisp. It is > merged with values from mailcap files by `mailcap-parse-mimetypes'.") > -- > 2.39.2 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 25 18:40:04 2024 Received: (at 68687) by debbugs.gnu.org; 25 Jan 2024 23:40:04 +0000 Received: from localhost ([127.0.0.1]:49590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT9KF-0005fF-OL for submit@debbugs.gnu.org; Thu, 25 Jan 2024 18:40:04 -0500 Received: from mout02.posteo.de ([185.67.36.66]:34767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT9KA-0005eb-6p for 68687@debbugs.gnu.org; Thu, 25 Jan 2024 18:40:02 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F3907240103 for <68687@debbugs.gnu.org>; Fri, 26 Jan 2024 00:39:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706225986; bh=TIqIoRlbdnPY7qU297SrNIplbyRIWty49m+UfZl4OHQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=M9+n/d2v/S6z3MO+bwp6kQdv/to6opMK3XnPzHytlzRVhCVgH3p3kXlosTeVDGvP3 VFA9og0JnPjyMDKCaXL5Q/KitLrlZS1eBQN1T5pqrQkH/iMoriytSVPDtBqEyIgOok m4j6g46md0TvfdZGQVBFZd9uanshMp3fdCbbNNHBPi3jgAtRafnkW41RTTVmMSccEJ YWWusjBf5AeEzMUCjEler1ZWRjSKW6kOf7A6FzhQthockhFDRl45/5mOJ+GBbRV2p0 Nj+aOw71vYlMTQM7JXCIbKfL8A1C3U0NPuDf+cp1JR7KIkJmTWwGY036KswbDcMgnU x7Yt+Wr0FxbBg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TLck86vFjz6txc; Fri, 26 Jan 2024 00:39:44 +0100 (CET) From: Ihor Radchenko To: Stefan Kangas Subject: Re: bug#68687: [PATCH] Use text/org media type In-Reply-To: References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> Date: Thu, 25 Jan 2024 23:43:14 +0000 Message-ID: <87h6j1f08d.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, Max Nikulin , emacs-orgmode@gnu.org 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 (---) Stefan Kangas writes: >> I suggest to make the media type used for Org mode files consistent with >> the one used by XDG https://gitlab.freedesktop.org/xdg/shared-mime-info >> Currently Emacs has text/x-org, however "x-" prefix is not recommended >> by IANA any more, see https://www.rfc-editor.org/rfc/rfc6648 >> "Deprecating the "X-" Prefix and Similar Constructs in Application >> Protocols" >> Ideally somebody should file a request to IANA to register the text/org >> media type. >> https://www.iana.org/assignments/media-types/media-types.xhtml > > Eli, Ihor, what do you think? I see using text/org as an improvement. text/x-org is likely useless. At least, https://github.com/jeremy-compostella/org-msg/blob/master/org-msg.el uses text/org, which may appear in email parts. However, AFAIU, text/org will fall into "standards tree" in IANA media type specification, which means that it MUST be registered, as described in https://www.rfc-editor.org/rfc/rfc6838.html#section-3.1 Registering text/org media type requires syntax spec. We are still working on format Org mode syntax specifications. See https://list.orgmode.org/orgmode/871rjhha8t.fsf@gmail.com/ and https://orgmode.org/worg/org-syntax.html The spec is still not fully finalized, so we are not yet initiating the registration, as we will need to repeat it again if we decide to make further changes (https://www.rfc-editor.org/rfc/rfc6838.html#section-5.5) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 26 02:24:01 2024 Received: (at 68687) by debbugs.gnu.org; 26 Jan 2024 07:24:01 +0000 Received: from localhost ([127.0.0.1]:50115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTGZF-0004qB-34 for submit@debbugs.gnu.org; Fri, 26 Jan 2024 02:24:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTGZC-0004px-HP for 68687@debbugs.gnu.org; Fri, 26 Jan 2024 02:24:00 -0500 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 1rTGYz-0005Cu-Mr; Fri, 26 Jan 2024 02:23:46 -0500 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=jy6VI/TlXd+sXN2Jbl47gRgjz/wxFC8oThiyZROeM8w=; b=jL3xzq3Nt88M nLIpGzynx9vzpmZ6mpxSsKAp+V6rERK0A8/URQzjQ+Gc7xfM1T01BJi+ewUo51G0aOzF6H48DHgrF MWDbwdBkBN4gd7tfnSzEwz7yEktSj+9hK3XgnbiuguWteYkopb0YuoOnV+2W5FiHBCuGKbmSUXitd GB7Skeo5+UWt++PeBlHqstxQ0csyACHsHG1gbEmLeZ6uGCIjxsXrUTD5yPnwwpaFVOl1k+cVukPlB I4n6JeUUebZ1MfF+quyv3gOMEs9j5d0nFaY0oVhu7JcMBOq9oS2vDv5JeWwL8cZ8vAOgzJsvfyR2w wrdUrjRayNAs0xAMqi630g==; Date: Fri, 26 Jan 2024 09:23:44 +0200 Message-Id: <86plxoblrz.fsf@gnu.org> From: Eli Zaretskii To: Stefan Kangas In-Reply-To: (message from Stefan Kangas on Thu, 25 Jan 2024 15:10:27 -0800) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, manikulin@gmail.com, emacs-orgmode@gnu.org 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: emacs-orgmode@gnu.org > From: Stefan Kangas > Date: Thu, 25 Jan 2024 15:10:27 -0800 > > Max Nikulin writes: > > > Hi, > > > > I suggest to make the media type used for Org mode files consistent with > > the one used by XDG https://gitlab.freedesktop.org/xdg/shared-mime-info > > Currently Emacs has text/x-org, however "x-" prefix is not recommended > > by IANA any more, see https://www.rfc-editor.org/rfc/rfc6648 > > "Deprecating the "X-" Prefix and Similar Constructs in Application > > Protocols" > > > > Ideally somebody should file a request to IANA to register the text/org > > media type. > > https://www.iana.org/assignments/media-types/media-types.xhtml > > Eli, Ihor, what do you think? I agree, but since Ihor indicates that is impossible for now, we will have to live with the current situation for at least the near future. So I think we should install these changes, but please audit them carefully to make sure we don't create any backward-compatibility problems unnecessarily. For example: > > diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el > > index 3c7e3cbdf1a..b10da0c143a 100644 > > --- a/lisp/gnus/mm-uu.el > > +++ b/lisp/gnus/mm-uu.el > > @@ -394,7 +394,7 @@ (defun mm-uu-emacs-sources-extract () > > > > (defun mm-uu-org-src-code-block-extract () > > (mm-make-handle (mm-uu-copy-to-buffer start-point end-point) > > - '("text/x-org" (charset . gnus-decoded)))) > > + '("text/org" (charset . gnus-decoded)))) > > > > (defvar gnus-newsgroup-name) > > > > diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el > > index 5ff75deb4e6..900099433c4 100644 > > --- a/lisp/net/mailcap.el > > +++ 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")) I'm not sure the removal of text/x-org in these two hunks is a good idea: could it perhaps cause trouble to someone, e.g. if an email message is sent from Emacs with this change and read by Emacs without it? (I don't use these packages, so I wouldn't know the answer.) In general, I'd prefer changes that add text/org without removing support for text/x-org. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 26 02:40:26 2024 Received: (at 68687) by debbugs.gnu.org; 26 Jan 2024 07:40:27 +0000 Received: from localhost ([127.0.0.1]:50167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTGp8-0005Gq-Ge for submit@debbugs.gnu.org; Fri, 26 Jan 2024 02:40:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTGp5-0005Gb-UP for 68687@debbugs.gnu.org; Fri, 26 Jan 2024 02:40:24 -0500 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 1rTGot-0004pc-46; Fri, 26 Jan 2024 02:40:11 -0500 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=tM6jj3mS/y9Uv3CnRAQN59STv7uA1iFbinklj83LxOk=; b=kr6sB6m8AlLM /V5xswfVjx46ejveXppNf/onJh63CsBclHuWvaPyHHhmVkBwrkMZ5CTEKd7B67930L8IDUqcCLqlZ 7aEkYHen2eE7ohAJTI2XJJNxb4ExaZxa5eX33L/SnunGyocJEjB4U/GnYQVEA4WQw07OTYccX0uZd Ocb28hW26Q5ldl+P4pXecp6EwTcujDNIuGOYMqeepbKQZ75HEbZ8UGt09FVyalFARpUd2/hWK9I55 lQ9wiChihY9FdsrYkL6yI2i80rq/BMVTcq+oc7Bxcfr2ZZs46BdCEO3+sxG+84NcuWT2JxZ/IFqie Tdp+GXJHCI7HFE/DJlb8jg==; Date: Fri, 26 Jan 2024 09:40:09 +0200 Message-Id: <86h6j0bl0m.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <87h6j1f08d.fsf@localhost> (message from Ihor Radchenko on Thu, 25 Jan 2024 23:43:14 +0000) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <87h6j1f08d.fsf@localhost> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, manikulin@gmail.com, emacs-orgmode@gnu.org, stefankangas@gmail.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: 68687@debbugs.gnu.org, Max Nikulin , > emacs-orgmode@gnu.org > From: Ihor Radchenko > Date: Thu, 25 Jan 2024 23:43:14 +0000 > > However, AFAIU, text/org will fall into "standards tree" in IANA media > type specification, which means that it MUST be registered, as described > in https://www.rfc-editor.org/rfc/rfc6838.html#section-3.1 > > Registering text/org media type requires syntax spec. We are > still working on format Org mode syntax specifications. See > https://list.orgmode.org/orgmode/871rjhha8t.fsf@gmail.com/ and > https://orgmode.org/worg/org-syntax.html > > The spec is still not fully finalized, so we are not yet initiating the > registration, as we will need to repeat it again if we decide to make > further changes (https://www.rfc-editor.org/rfc/rfc6838.html#section-5.5) I hope the process of finalizing the Org spec and moving to its registration will not fall between the cracks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 26 05:39:27 2024 Received: (at 68687) by debbugs.gnu.org; 26 Jan 2024 10:39:28 +0000 Received: from localhost ([127.0.0.1]:50517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTJcN-0001cm-JY for submit@debbugs.gnu.org; Fri, 26 Jan 2024 05:39:27 -0500 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:50259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTJcL-0001cY-RW for 68687@debbugs.gnu.org; Fri, 26 Jan 2024 05:39:26 -0500 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-51028fadfe2so221136e87.0 for <68687@debbugs.gnu.org>; Fri, 26 Jan 2024 02:39:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706265553; x=1706870353; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-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=/0lQFJnp7n+9fVzLWENMvmId5D5z1Zpqa/HqyqvssLU=; b=TroOgmZsn9+3q94AT56dCAS5HsA6ylWepSIEKDUIOnqdgkB8+hf+LiisV7PMPbGaDs QBkWhkHd7+Vf1F68nTMsK4qjYkPDPcFgKuAPt7hK5FRiu8wdN18VttEAAgNpB9aJDyjq KY9djTehh8GuB8Sg+hKOSqNB5xRpsTyUDuVi+2bUHNt+DioHZBVa3jF2lVLYykN03v+9 UcjahfZFHhsNzndDcVl3m0B6faszis8VEBA/SluspTFLYFWS2ftbnq1CYWXN3CbojUsE LYoWRginCY8/gLNvjSLnBog84KusOE1TAqqxyGTE6alS4LoAOCWaJqGbxISq3ixHm/XF wo5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706265553; x=1706870353; h=content-transfer-encoding:in-reply-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=/0lQFJnp7n+9fVzLWENMvmId5D5z1Zpqa/HqyqvssLU=; b=aLjRtcfmZdKCuPAos2nldmtpqANgnjl0fxvZOFfxWr9h7ik7KPVJ1ZmtNYz0nrtyBv l1CsbULx6sIHAC9qngBo4n6S3Gc7NZ4jqOI46bKOku81cMABKxf7Cu3/PYtvzr24Qp0o kNfW17PEnSwGTe+vSk35QK5M+I+p99PlYcgNCTImFBGNbmFv/2wCnbqmVJYQU3UooX8T mDvfv7RNEPO+NMXtarf5UC5QX765Z6qyK3dQclABCQqdQwsflikF/FW7Xedb8d+DVxiD Cf+Hz+sAKMNlpRT+FC1ZZgVpnDJ1mz/Co/ndBbqCI0UYjjJxgGMDkVDqoyach4ctiKzk rndA== X-Gm-Message-State: AOJu0YzFD9JE2zMUiNy8b7BfGANW3nTTxO+3hnjZfG015DhlWeOMbbwh 17ity7tgnDCTpH7CWAt+aqQiM03ufLs6hCaugGRaxG4tsp1KoigC X-Google-Smtp-Source: AGHT+IECqWuh7pUD2JbSJltkJwLPp5BumjXN6bn6qwix+OY4oLbthMtcjJXVGIEqGNTngmBJlsHTNA== X-Received: by 2002:ac2:43b1:0:b0:50e:9d0e:85f0 with SMTP id t17-20020ac243b1000000b0050e9d0e85f0mr598887lfl.69.1706265553248; Fri, 26 Jan 2024 02:39:13 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id j4-20020ac253a4000000b0050e7d22a9b8sm140407lfh.89.2024.01.26.02.39.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jan 2024 02:39:12 -0800 (PST) Message-ID: <975b3fb3-36aa-4c93-9381-edc7b5cc3049@gmail.com> Date: Fri, 26 Jan 2024 17:39:11 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#68687: [PATCH] Use text/org media type Content-Language: en-US, ru-RU To: Eli Zaretskii , Stefan Kangas References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <86plxoblrz.fsf@gnu.org> From: Max Nikulin In-Reply-To: <86plxoblrz.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org 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: -1.0 (-) On 26/01/2024 14:23, Eli Zaretskii wrote: > I'm not sure the removal of text/x-org in these two hunks is a good > idea: could it perhaps cause trouble to someone, e.g. if an email > message is sent from Emacs with this change and read by Emacs without > it? I do not mind if you will decide to split the suggested patch into 2 parts and to postpone for some years hunks that affect sending. Anyway it would be a step toward text/org media type. Messages sent to the emacs-orgmode mailing list last years contain mix of - text/org - text/x-org - application/vnd.lotus-organizer (most popular variant) From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 26 05:52:57 2024 Received: (at 68687) by debbugs.gnu.org; 26 Jan 2024 10:52:58 +0000 Received: from localhost ([127.0.0.1]:50526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTJpR-00024M-JW for submit@debbugs.gnu.org; Fri, 26 Jan 2024 05:52:57 -0500 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]:46135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTJpP-000248-DM for 68687@debbugs.gnu.org; Fri, 26 Jan 2024 05:52:56 -0500 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2cdfa8e69b5so3224751fa.0 for <68687@debbugs.gnu.org>; Fri, 26 Jan 2024 02:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706266362; x=1706871162; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-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=vk+RRhDzeDZ6aDLHd27p3QwBb0S6gsOf3Ij5BxVef1o=; b=iiwXTLcKXWZ/qEPzmm4zsyAdGe8mapMYJqermdqv0KWmvDnTFw3YGsS6Jfh3FEWWoJ wf9fGGS+PghrNX5h8j3tyxEd3MCTi00dnKCMerai+lt+OkCeV2NPdlEPa5FnpQQaNfYS shvU172hT3gocBfS6FGxIeYloZWBiYhakqmgreRgsQWHAFH/vvK+SU2f3SlRCwwdFSXD Zha+NvuGUFk6WJjXh+0iIJ/JN442qJg9uQKW2yUOsQ5Kf69vhpol9DNwNYKJPd6j/dIj Beh7GUVC41OyHKIW2hx0OGeReNfKqZ8sXd8IzCsxSrnP8kjTk7m5jSsbopnDsZFMkPEh kgGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706266362; x=1706871162; h=content-transfer-encoding:in-reply-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=vk+RRhDzeDZ6aDLHd27p3QwBb0S6gsOf3Ij5BxVef1o=; b=bq9EUBttfcSpqgn97/fYgd2LCr/rjkOmC2bMhafQaf4KeSTvKrMrvHqb4ao9arh2J8 yekFwjw++tAhPJOu2Wm21mWCfsdrxNAjbRRSQfI5Q/VUmVSeCBIQGXTj49rzw8R9RPl9 gGbKs4m94j6FsGUpqerY4Sy+J65hXaI+xHLO5KaZB98AIQ+ax2jkHPX3dlrmZ/tlPwax 7mLooB71y7rcQT1CmyuhFT2253OacA2Jyvltcoxr57EIz1My9tlW9yiT7L7WIA9WmdWs jlf0Ad6NzHyrabeYGKlGBQsG/xId62nvzPgSmWu42Y5TG/fIokLkoBKbnRJNFWxA3sS1 uEnA== X-Gm-Message-State: AOJu0YybTGaSMZn+d9yI1e/DhwdjD4MEWBiyN2Zz++Ofgj8szFYdbnc7 Z1wGSBAuRVUw6o3Ra93FXGoOlqk7jfni6EagR9vuXJ8o1W5FkLy5 X-Google-Smtp-Source: AGHT+IHLtStogGGDoAxB4mXP5/uZLEMYs+S60G3dzUDZRAWBSkm1foQxQI7lkwJ+hkHCJx0xxxKUGQ== X-Received: by 2002:a2e:a48a:0:b0:2cf:34ce:16ab with SMTP id h10-20020a2ea48a000000b002cf34ce16abmr415818lji.58.1706266362343; Fri, 26 Jan 2024 02:52:42 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id a12-20020a2eb54c000000b002cdd330dc6fsm123354ljn.140.2024.01.26.02.52.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jan 2024 02:52:42 -0800 (PST) Message-ID: Date: Fri, 26 Jan 2024 17:52:40 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#68687: [PATCH] Use text/org media type Content-Language: en-US, ru-RU To: Ihor Radchenko , Stefan Kangas References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <87h6j1f08d.fsf@localhost> From: Max Nikulin In-Reply-To: <87h6j1f08d.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org 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: -1.0 (-) On 26/01/2024 06:43, Ihor Radchenko wrote: > However, AFAIU, text/org will fall into "standards tree" in IANA media > type specification, which means that it MUST be registered, > > Registering text/org media type requires syntax spec. We are > still working on format Org mode syntax specifications. You a right. I was confused reading rfc6648 that registration procedure had been simplified to deprecate x- prefixes. In addition, I did not realize that application/vnd.lotus-organizer was registered without format specification because this type belongs to the vendor tree, not standards one. https://www.iana.org/assignments/media-types/application/vnd.lotus-organizer I do not think it is reasonable to use a type like text/vnd.gnu.emacs.org. Even with format specification, I am afraid, .org file name suffix may be an obstacle. Likely it is necessary to contact IBM and to ask them concerning registration of Lotus. In the optimistic scenario they may declare Lotus-related media types as obsolete since the product is discontinued. Changing of file name suffix for Org would be more painful than updating emacs to use text/org instead of text/x-org. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 26 07:23:19 2024 Received: (at 68687) by debbugs.gnu.org; 26 Jan 2024 12:23:19 +0000 Received: from localhost ([127.0.0.1]:50610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTLEs-0004di-Pf for submit@debbugs.gnu.org; Fri, 26 Jan 2024 07:23:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTLEq-0004dQ-Hd for 68687@debbugs.gnu.org; Fri, 26 Jan 2024 07:23:17 -0500 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 1rTLEe-0006yy-Kx; Fri, 26 Jan 2024 07:23:04 -0500 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=rHpN5VniBaVksV3nRnsQW771lB8qqcAFPxxDigtYEvY=; b=pQsxOdGPIbEs ESsMvWwgVZ+ZJW7DIINkXlFeyLBQx356KfTjwP1uAOI9KG6fpFIi3jR+B6FCMNywFJYyDBO7bu5az bXcFkXW1+KZw3Ujc+WgCqj9iaK5RHOspCwPuToCwsXne3TaMKt5IoD2KzMkozWP057DJZPHpvg07G 7uKtzYx/HEkYBq8lqslR2/VA8+S/Q9kOd60LM4McWKRg4gm1zPXJSOhxeO6+ezuK2tZBs9gHAO6ib ZAboM/Guyxhf0c7o4UXbXz/VgH+cjVNC+ifOVD6Zb+9zBVq+jV4lfnLCmdUUU7gYUVLw/4K0nVfrT cwYHVUjwrnOD4UOIUYy4Fg==; Date: Fri, 26 Jan 2024 14:22:59 +0200 Message-Id: <864jf0b7x8.fsf@gnu.org> From: Eli Zaretskii To: Max Nikulin In-Reply-To: <975b3fb3-36aa-4c93-9381-edc7b5cc3049@gmail.com> (message from Max Nikulin on Fri, 26 Jan 2024 17:39:11 +0700) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <86plxoblrz.fsf@gnu.org> <975b3fb3-36aa-4c93-9381-edc7b5cc3049@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, stefankangas@gmail.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 (---) > Date: Fri, 26 Jan 2024 17:39:11 +0700 > Cc: 68687@debbugs.gnu.org > From: Max Nikulin > > On 26/01/2024 14:23, Eli Zaretskii wrote: > > I'm not sure the removal of text/x-org in these two hunks is a good > > idea: could it perhaps cause trouble to someone, e.g. if an email > > message is sent from Emacs with this change and read by Emacs without > > it? > > I do not mind if you will decide to split the suggested patch into 2 > parts and to postpone for some years hunks that affect sending. Anyway > it would be a step toward text/org media type. > > Messages sent to the emacs-orgmode mailing list last years contain mix of > - text/org > - text/x-org > - application/vnd.lotus-organizer (most popular variant) So can you please point out which part(s) of your patch should be installed right away? Or post a new patch that includes only those parts? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 26 08:57:19 2024 Received: (at 68687) by debbugs.gnu.org; 26 Jan 2024 13:57:19 +0000 Received: from localhost ([127.0.0.1]:50700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTMhr-0003zo-Dr for submit@debbugs.gnu.org; Fri, 26 Jan 2024 08:57:19 -0500 Received: from mout01.posteo.de ([185.67.36.65]:51049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTMhp-0003zS-PS for 68687@debbugs.gnu.org; Fri, 26 Jan 2024 08:57:18 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A6BDD240029 for <68687@debbugs.gnu.org>; Fri, 26 Jan 2024 14:57:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706277425; bh=Ry7LjUV/EKpK9/JF1ddlODDDrK8QuU4CFKy1UlrXM+s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=eDaJrM5w47OVFxl1RZ+CIly3JvPrs2WXjmjKT0jEGyebqr5RnP9KP5BsUIdTKyPLN hMrLBbhPAIXzpsNyY6laDQhJ6mDkd4nblRvdoNlUVAQIjL2ULz5sFGNswQMcbncalq bvrwyaTU8T5d+1noSEnix182McOM8KkAomWDklRM7YYOuq6QswQ/yad3/FIA1qPXX7 cSBz74XKi5hXBijRBD2JBG9rmJQD7jzLOy/MKWdrNuExupHoa7/owKU5cuc0RYtDjM H5XxwBeH5ESZMdZ1QgiIhodWWXwgTV8ppAHEdDMzEP9fdJa9db3pxlYmSpzKGPLvH2 r07EbJhLb/qCQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TLzlN358bz9rxB; Fri, 26 Jan 2024 14:57:04 +0100 (CET) From: Ihor Radchenko To: Eli Zaretskii Subject: Re: bug#68687: [PATCH] Use text/org media type In-Reply-To: <86h6j0bl0m.fsf@gnu.org> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <87h6j1f08d.fsf@localhost> <86h6j0bl0m.fsf@gnu.org> Date: Fri, 26 Jan 2024 14:00:37 +0000 Message-ID: <87il3gdwje.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, manikulin@gmail.com, emacs-orgmode@gnu.org, stefankangas@gmail.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 (---) Eli Zaretskii writes: >> The spec is still not fully finalized, so we are not yet initiating the >> registration, as we will need to repeat it again if we decide to make >> further changes (https://www.rfc-editor.org/rfc/rfc6838.html#section-5.5) > > I hope the process of finalizing the Org spec and moving to its > registration will not fall between the cracks. No worries. We are slowly working on the spec. See https://git.sr.ht/~bzg/worg/log/master/item/org-syntax.org But finalizing the whole thing will not be fast, given our plans to extend Org mode syntax to better suit software manuals as requested by RMS, and to address several long-standing issues with escaping edge cases. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 26 22:38:45 2024 Received: (at 68687) by debbugs.gnu.org; 27 Jan 2024 03:38:45 +0000 Received: from localhost ([127.0.0.1]:53212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTZWn-0004mf-5u for submit@debbugs.gnu.org; Fri, 26 Jan 2024 22:38:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTZWm-0004mU-2p for 68687@debbugs.gnu.org; Fri, 26 Jan 2024 22:38:44 -0500 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 1rTZWZ-00058f-Q0; Fri, 26 Jan 2024 22:38:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=b7vULhmXgnzSTyRsowxZj1O4ovQrVgkC+Ii8x8aOqvc=; b=lzA51GufD0ZT WmPIqV/H9Hizb/YxFP85iELlRutzW9qlFF+G5fkgFHEj4/mO6Skxx4s8bKNw7i3Agr/KOUlQ5UBBc nUPvp+KLV6ILggGvWKowL9NXY2ZGtf+UAnhKrRpUkWbHbrypIEZmq0+zUVxaCZICUbb96jvP9tWm1 oZEo+D/bgp0WacNXTgh8aXNIGcbAaP9iPj4FxN2nG7tk7NpH0OfF9ZmbeyNARm3nSzJORaR7Wqxi1 Guz9tk2eHfSp3f/a5nZwU2aVYbM3hwr0uNPrwUHzS+7kwdOflufu9qajH3RIBxZWMbcj5l1ELSTUY 6XNfdjUubt1WRXRGdwJ+5Q==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rTZWZ-0008Ca-EM; Fri, 26 Jan 2024 22:38:31 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Stefan Kangas In-Reply-To: (message from Stefan Kangas on Thu, 25 Jan 2024 15:10:27 -0800) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> Message-Id: Date: Fri, 26 Jan 2024 22:38:31 -0500 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, manikulin@gmail.com, emacs-orgmode@gnu.org 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: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] What is the purpose for which text/org would be used? In what situations would we want to send files in Org format and why would it be useful to formally label them? -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 28 11:35:30 2024 Received: (at 68687) by debbugs.gnu.org; 28 Jan 2024 16:35:31 +0000 Received: from localhost ([127.0.0.1]:58250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU882-000209-L1 for submit@debbugs.gnu.org; Sun, 28 Jan 2024 11:35:30 -0500 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]:47357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU881-0001zt-BZ for 68687@debbugs.gnu.org; Sun, 28 Jan 2024 11:35:30 -0500 Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3bbbc6b4ed1so1585953b6e.2 for <68687@debbugs.gnu.org>; Sun, 28 Jan 2024 08:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706459716; x=1707064516; darn=debbugs.gnu.org; h=content-transfer-encoding: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=qeW6kPmJ/wxShZqei+lgoDcICJAIEOpXKPovBqGMhW4=; b=lV4V2+H6oo8KQZh/nVsblboQM4quekXyqSzxPDdfUZPTEutho2C4MugPlokZCoZbhp A+ymj1QBEo4X2CS65nvo0THbXpu7pIv8YA7+IYyT/SLE0cyMw7rPNPR5TfuXR0i9v+w3 M7CX7kFcLn25F6dyiChTw77cja5oBj2CeGwRRucjteIRopH3qAaQYvWu2u+nNsgOKNaf a4KvVlmmicuWmUZMUiuGtUJ5jNQ1j6H/NU61w04nPQm1LmGQACIxxezhbbXFIIEUj2B+ cEzN9MXkX7+NAXxT0c430pS1fC6jISVSS/QR3JK7O3joCwnMm3dT9VtMgORwyMf3WEOk 5xSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706459716; x=1707064516; h=content-transfer-encoding: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=qeW6kPmJ/wxShZqei+lgoDcICJAIEOpXKPovBqGMhW4=; b=Ner2DwLseBUE8qn8xWYv1BaFuttl+Yj8FZbbbwrwlBX8I9iBnm1Lc1qsEY7bFuKpsp sQ/VCceKVTSdVHLywUYQlzq5++8qAP5Z3uqKCNnaxXZ7UKqg+tGJPvMBUhSX71HYbFJK xCLfvCd1u2qBXHs1+6p8fW015L6Iz3NR4FBsNi+PnvVKYKuAaEWtBkxKtbIvxCvZfKGE bUndaKlq9KnOT1tfAxCO2bOHrMAbtXKLoYKEDFUvgtFAHSAhbdA9qSV/w8D3KVx0syVV mJuSfNdQL0g+QAuF32hLjOv2IQavruwpJtqGS4oOYdgcqEUpRrayHD57NVrcveayyYHL e8yA== X-Gm-Message-State: AOJu0Yy4chl3SGZn1vWm63jJcdjDcHa1FO9XwCJTSQhNwTr4dRyGyzyp qpZHBj8rRNXPw+rrR8bVxo+OP2t36LfmCLsTvvjL1YndP0R9Xrzr X-Google-Smtp-Source: AGHT+IFpu3eA+5QK4Lh9dzsMcNYcfbdwuowqBTw5NwLxx1ED+7MFAe5cFxFtj4yJixKUIYu9wWtTdw== X-Received: by 2002:a05:6808:1929:b0:3bd:cbf2:8f09 with SMTP id bf41-20020a056808192900b003bdcbf28f09mr5049418oib.16.1706459715883; Sun, 28 Jan 2024 08:35:15 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id p13-20020a4ad44d000000b005990bd1e1dcsm1141585oos.17.2024.01.28.08.35.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Jan 2024 08:35:15 -0800 (PST) Message-ID: <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> Date: Sun, 28 Jan 2024 23:35:09 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#68687: [PATCH] Use text/org media type Content-Language: en-US, ru-RU To: rms@gnu.org, Stefan Kangas References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> From: Max Nikulin Mail-Followup-To: rms@gnu.org, 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 X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 27/01/2024 10:38, Richard Stallman wrote: > > What is the purpose for which text/org would be used? > In what situations would we want to send files in Org format > and why would it be useful to fo [...] Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.188 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:230 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (manikulin[at]gmail.com) -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, emacs-orgmode@gnu.org 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: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 27/01/2024 10:38, Richard Stallman wrote: > > What is the purpose for which text/org would be used? > In what situations would we want to send files in Org format > and why would it be useful to fo [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [5.44.169.188 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:230 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (manikulin[at]gmail.com) -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager On 27/01/2024 10:38, Richard Stallman wrote: > > What is the purpose for which text/org would be used? > In what situations would we want to send files in Org format > and why would it be useful to formally label them? I am rather confused by these questions. Media types appears in the Content-Type header. Applications decide how to treat content basing on media type description. E.g. Thunderbird may be configured to display text attachments inline, but if the same attachment uses application/vnd.lotus-organizer then an external application must be invoked to see its text. De-facto Org files are used in various projects. Received or fetched Org files must be treated with some precautions, but it is another story. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 28 11:48:19 2024 Received: (at 68687) by debbugs.gnu.org; 28 Jan 2024 16:48:19 +0000 Received: from localhost ([127.0.0.1]:58269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU8KQ-0002PT-LH for submit@debbugs.gnu.org; Sun, 28 Jan 2024 11:48:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU8KO-0002Of-5f for 68687@debbugs.gnu.org; Sun, 28 Jan 2024 11:48:17 -0500 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 1rU8KA-0006le-CT; Sun, 28 Jan 2024 11:48:02 -0500 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=zg5X4Q6h4g32RovpTwk6cOuC2ZT+UMv6jRF7sp7IS4Y=; b=DTh1p1JqcSZ0 4qS0HruxkgOk1l2tLIUhMdELvjROdY54FispgduuqEMDRllPCwA45naswj3lqXdN+ddQc7uHLonMf jVeFUDy61/Hy1KgFavbOGSdIn7g5+ZCVIvVlqSUJtI8ZKtnaH3plfjWRX2iZdQ+qMT2I8qwjZHjOH mHPYfGgJBdLlnvuL0rjwj0zmgYUnqAAO4YWlM7F4jSXbmNDWs3j5FYpUmnyIL4QtA63dHYDmdrfpQ CeSOZTYu7BBWPWFuhQYQ085IFmdmiEb0KZdOMD72nOr4eK6lPOC2i50V8Brifexg/LoF3LwznhU1c gisbYZ1WIeB2Lab6St1Mag==; Date: Sun, 28 Jan 2024 18:47:37 +0200 Message-Id: <8634uh5rrq.fsf@gnu.org> From: Eli Zaretskii To: Max Nikulin In-Reply-To: <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> (message from Max Nikulin on Sun, 28 Jan 2024 23:35:09 +0700) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, emacs-orgmode@gnu.org, rms@gnu.org, stefankangas@gmail.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: 68687@debbugs.gnu.org, emacs-orgmode@gnu.org > Date: Sun, 28 Jan 2024 23:35:09 +0700 > From: Max Nikulin > > On 27/01/2024 10:38, Richard Stallman wrote: > > > > What is the purpose for which text/org would be used? > > In what situations would we want to send files in Org format > > and why would it be useful to formally label them? > > I am rather confused by these questions. Media types appears in the > Content-Type header. Applications decide how to treat content basing on > media type description. E.g. Thunderbird may be configured to display > text attachments inline, but if the same attachment uses > application/vnd.lotus-organizer then an external application must be > invoked to see its text. > > De-facto Org files are used in various projects. Received or fetched Org > files must be treated with some precautions, but it is another story. I think Richard lacks the broader context: that text/org is supposed to appear in the Content-Type header in email messages, and the MUA is supposed to display this content in received email messages according to user expectations, which generally follow how Org buffers display text. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 29 19:43:19 2024 Received: (at control) by debbugs.gnu.org; 30 Jan 2024 00:43:19 +0000 Received: from localhost ([127.0.0.1]:34001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUcDf-0005w0-HV for submit@debbugs.gnu.org; Mon, 29 Jan 2024 19:43:19 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:45149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUcDd-0005vh-JF for control@debbugs.gnu.org; Mon, 29 Jan 2024 19:43:17 -0500 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-55efbaca48bso2242688a12.2 for ; Mon, 29 Jan 2024 16:43:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706575383; x=1707180183; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=Ue+ZsHR1rgwjYEEIkWAY2gokflcO8nqkzgvP7KweIEM=; b=aQ9jud4NgHiuS4Vmbb/6WMZP7IrYeCzI2CHHeAGb4FXef8pYjxTuMx22khex1BqX5r cs6H0bkVZ3h3ZessD/Ruc968SuePc6jxbOeCDfvpwLAUAduGLicxZHmoqJVJwkdgOuxv UTDvC1jRZDp0pAwpm8dZDOz39j2ADjZtNGMTsMs6a5veNvEF4iJAwBCQU8zxT2UV2s1R ew8o25XmAcir5ufokDkkk5xj2SDS8K9fPcWvNUyo+NZcA909JI1HHbJxNqU+PDFyWBy+ FQZa/pZVIhVq8ti2TUhuXl/mnKGS3aJqj3Q4Zjq8ksfjv56OcjSZt6WTWSk8cMzUA6Bp 4H/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706575383; x=1707180183; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Ue+ZsHR1rgwjYEEIkWAY2gokflcO8nqkzgvP7KweIEM=; b=FkuACxIfeNQ8sdlTSwgQ2/MCNHaJbXXa3OCVgTxCgGbzjD69+0dPykqZnBtH30Y4Y4 GGHVBmxGFWdTBmZ3z2WtgRrUl9Mnzhh4LCvopkWYbTBVEmUiw6OD40HeSAigU/2t5t9r o0teReZKnXnb/kuuVoe7n1HGMWuiqEAwxFnFUdlg1dq3Ap+39s1M/5Dz3SOz68SNYUxR 7UKa7tHQSpvMiobw8AgjN85swCMCEtiwiFmSYHOp2x9HHRpqOlWNIsjvEzmr5KzRsSfG cmib7mc+92AT15P/vNwjTpNTFttGYBd6srm4lY1d63iPAD5fOioG6Hx6uJznbBLRd0D4 Nb1w== X-Gm-Message-State: AOJu0YwbNv6OgTlnw2vgyyUHpniS/9K9kQrI7v+A3g7fsVckxWfxHUgM arajiy/7iqEsfOoKnv3081e6wiKQJK1eDh0eNbqFu24707/jneCuThfVAXJ6qm8gLvCneNfXA3a ALlcXhweBQIFzQeBEqwCL0omrKvaBJ6sKZPw= X-Google-Smtp-Source: AGHT+IEIwXG1UgE7qP+lS0ENoDuxAhu20DcE8oAjdPMfoP/19Ww436I6hdEBz118OlSeIIlF0V9nujbh824WYufKwUs= X-Received: by 2002:aa7:d743:0:b0:55f:301b:14df with SMTP id a3-20020aa7d743000000b0055f301b14dfmr770158eds.3.1706575383237; Mon, 29 Jan 2024 16:43:03 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 29 Jan 2024 19:43:02 -0500 From: Stefan Kangas MIME-Version: 1.0 Date: Mon, 29 Jan 2024 19:43:02 -0500 Message-ID: Subject: control message for bug #68687 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) severity 68687 wishlist quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 29 22:57:19 2024 Received: (at 68687) by debbugs.gnu.org; 30 Jan 2024 03:57:20 +0000 Received: from localhost ([127.0.0.1]:34119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUfFP-0008Gr-H1 for submit@debbugs.gnu.org; Mon, 29 Jan 2024 22:57:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUfFO-0008Gc-40 for 68687@debbugs.gnu.org; Mon, 29 Jan 2024 22:57:18 -0500 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 1rUfF6-0000oX-9w; Mon, 29 Jan 2024 22:57:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=zjAFXS2MH12haNu/Hh35FradmX6n0vZMJq1e+u/fk38=; b=dthDcQnQi6d+ QHQ5KTDc5AnZcqlraQlcI2LUYHc9EGPWNehiYbRPJZK4H2fFOvMTBsY1zm+enVnUwoVGXOb6S2S1z 9o2f8qzPNc7b0LDy0qvF92/AhspUhbOLEKAi1vWZiUevVAnZpZp4ZuVx4pbN+wKSBEkMF1Y4EHgY7 4AVRwr4c/myc4YkZS01oakgNbGpOWgoLyBojNRuAzrDMrlNwolkAip7R9Xg8ZOm4JHBHbB2zPQVR5 KEY5HGmRVxvFsJcOaShjpP8yrilBayyOLYnYV2elWogmcL3Oj5SwwkOHUr23S0YL+eo3YaCQuRD1z ObKEfCHMgxnqKDkzfPPuRQ==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rUfF4-00069N-Gu; Mon, 29 Jan 2024 22:56:58 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Eli Zaretskii In-Reply-To: <8634uh5rrq.fsf@gnu.org> (message from Eli Zaretskii on Sun, 28 Jan 2024 18:47:37 +0200) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> Message-Id: Date: Mon, 29 Jan 2024 22:56:58 -0500 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, manikulin@gmail.com, emacs-orgmode@gnu.org, stefankangas@gmail.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: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I think Richard lacks the broader context: that text/org is supposed > to appear in the Content-Type header in email messages, and the MUA is > supposed to display this content in received email messages according > to user expectations, which generally follow how Org buffers display > text. Thanks/ I had a feeling that it was something along roughtly those lines, but I was not sure. Now I know. I am concerned that the actions described above would tend to embed Org format and Org mode more deeply into Emacs usage. Suppose A and B are Org users. If A knows this, and mails B a message which contains text labaled as text/org, that won't make anyone unhappy. No one would have a reason to complain. But what if C mails a message to D with text labeled as text/org and D is not an Org user? Will that cause Emacs to load Org? It should not. What will Gnus do when the user readss a message with text labaled as text/org? What will Rmail do? What will MH-E do? These are crucial questions because the answers would determine whether this feature pressures people to use Org mode or not. We need concrete answers because only that would enable us to see cleary now whether the feature would do that if in use. Max Nikulin wrote: Received or fetched Org > files must be treated with some precautions, but it is another story. I was not aware of this issue. Let's look at it concretely now so we can determine what its implications are. Have people already written a list of these precautions? If so, I'd like to see it. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 30 07:10:34 2024 Received: (at 68687) by debbugs.gnu.org; 30 Jan 2024 12:10:34 +0000 Received: from localhost ([127.0.0.1]:34502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUmwk-0007Q6-7d for submit@debbugs.gnu.org; Tue, 30 Jan 2024 07:10:34 -0500 Received: from mout02.posteo.de ([185.67.36.66]:37899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUmwj-0007Ps-3d for 68687@debbugs.gnu.org; Tue, 30 Jan 2024 07:10:33 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7F3C6240103 for <68687@debbugs.gnu.org>; Tue, 30 Jan 2024 13:10:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706616617; bh=E7ICPWyJUuiCje/OWkMUi9wFTC1cM1MEh2vvsHZil+Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=XbzCDRL2JBQo5fXLvNir/kVnzV0flT9DPuRNAQyCvsc4a+uNU88CLX0/GppHnWFEW TGCdSPH94tmk6Ko96eZzh4WaT8PX8BGg7SAq7HhFN6eKtXnkH7N7K/oCKfdMxaz4xW P2XxuxeuafU+hJRhmsNd/EkbuMbLZoUoQhv7OTCZZpJsYcHgKrs+tXRGzUEsXB7Puc aPbVfVybrDwcMQmf7RitIUAdszNM7D3nlJ+gzKg/CLKE67kFWxkPBE+3CcrB2ypVVE ESUFJt8+w/qt5VTAKA2G/aBZmk3+11G0QiHgtRggl1Njcy3a/VMH68AssSgjszLOaD k8+B6OZ3eKdaA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TPPBJ1c4Hz6tvr; Tue, 30 Jan 2024 13:10:15 +0100 (CET) From: Ihor Radchenko To: rms@gnu.org Subject: Re: bug#68687: [PATCH] Use text/org media type In-Reply-To: References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> Date: Tue, 30 Jan 2024 12:13:47 +0000 Message-ID: <87mssn81dw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, Eli Zaretskii , emacs-orgmode@gnu.org, manikulin@gmail.com, stefankangas@gmail.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 (---) Richard Stallman writes: > I am concerned that the actions described above would tend to embed > Org format and Org mode more deeply into Emacs usage. > > Suppose A and B are Org users. If A knows this, and mails B a message > which contains text labaled as text/org, that won't make anyone > unhappy. No one would have a reason to complain. > > But what if C mails a message to D with text labeled as text/org and D > is not an Org user? Will that cause Emacs to load Org? It should > not. > What will Gnus do when the user readss a message with text labaled as > text/org? What will Rmail do? What will MH-E do? It may or may not depending on user customization `mm-inline-media-tests'. Just like with text/html, application/javascript, text/x-sh, images, etc. By default, for example, text/html gets rendered via shr.el (AFAIK). Do you think that shr.el should not be loaded (in (require 'shr) sense)? > These are crucial questions because the answers would determine > whether this feature pressures people to use Org mode or not. We need > concrete answers because only that would enable us to see cleary now > whether the feature would do that if in use. Even when text/org is rendered using Org mode, there is nothing pressuring people to use Org mode there. It is just visuals. Org major mode is not activated. Also, it is already what Emacs does for text/x-org. This patch is merely asking to treat text/org as text/x-org is already treated. > Max Nikulin wrote: > > Received or fetched Org > > files must be treated with some precautions, but it is another story. > > I was not aware of this issue. Let's look at it concretely now so we > can determine what its implications are. Have people already written > a list of these precautions? If so, I'd like to see it. Max is referring to various security issues with evaluating code inside Org mode buffers. They are known, but not relevant to Org text being displayed in email MUA - Org never evaluates any code automatically without user explicitly asking for it. And in MUA, Org mode is simply used to apply faces. No other interaction with the displayed text/org mime part is allowed. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 30 07:52:48 2024 Received: (at 68687) by debbugs.gnu.org; 30 Jan 2024 12:52:48 +0000 Received: from localhost ([127.0.0.1]:34544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUnbb-0002sl-JS for submit@debbugs.gnu.org; Tue, 30 Jan 2024 07:52:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUnbY-0002sV-T1 for 68687@debbugs.gnu.org; Tue, 30 Jan 2024 07:52:46 -0500 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 1rUnbK-0005Vd-Kz; Tue, 30 Jan 2024 07:52:30 -0500 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=dX9EQsh7cr+aC+dt7Icg1dNx6wo+IucG8mLbBvuqqoE=; b=E+xkaoes2cfV gALNWqGc5nq7NOAU5dIkn5Dedb2SGISym99Ff/xkKVlijFogSu8j4F/CamJoGjGShCSPqDDoRrTbw nF+ZBahJU9LNxWKKFXm3Xx9dSblmmzBovzfQnQATPDqUBlgm5UX26xvqVFq3FILHtRed0MUyL1f09 U8PuYNc3I6ZcaOCBzHk78LTcO74v7S+ky5o49BLENrq64uZPW9jo5ADfteh7jW6ZMit4NsWUIT1U3 yOxBQazNQDxgnYaylA82Z5vVY8tXgWaCpegeU424m6iQs2fNPo0riLCqMculLPlAr3s2uyMmauHY4 T3e045S8xNMsshvJ/5zitA==; Date: Tue, 30 Jan 2024 14:52:16 +0200 Message-Id: <86jznr2dbz.fsf@gnu.org> From: Eli Zaretskii To: rms@gnu.org In-Reply-To: (message from Richard Stallman on Mon, 29 Jan 2024 22:56:58 -0500) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, manikulin@gmail.com, emacs-orgmode@gnu.org, stefankangas@gmail.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 (---) > From: Richard Stallman > Cc: manikulin@gmail.com, 68687@debbugs.gnu.org, emacs-orgmode@gnu.org, > stefankangas@gmail.com > Date: Mon, 29 Jan 2024 22:56:58 -0500 > > I am concerned that the actions described above would tend to embed > Org format and Org mode more deeply into Emacs usage. > > Suppose A and B are Org users. If A knows this, and mails B a message > which contains text labaled as text/org, that won't make anyone > unhappy. No one would have a reason to complain. > > But what if C mails a message to D with text labeled as text/org and D > is not an Org user? Will that cause Emacs to load Org? It should > not. > > What will Gnus do when the user readss a message with text labaled as > text/org? What will Rmail do? What will MH-E do? This happens to me all the time (because our mailing lists are full of such C's, and I'm one example of D), so I know what happens, at least in Rmail: you see the text with Org markup uninterpreted, as plain text. Here's a random example: #+begin_src emacs-lisp (add-hook 'before-save-hook 'time-stamp) (require 'org-refile) (setq org-refile-use-cache t) (setq org-refile-use-outline-path t) (setq org-refile-targets '((nil :maxlevel . 5))) (setq org-goto-interface 'outline-path-completion) (setq large-file-warning-threshold 15000000) (find-file "foo.org") (org-refile-get-targets) #+end_src With Org, the header and footer should be removed from display, and the Lisp code should be displayed with lisp-mode fontifications. What I see is just plain text, including the pesky header and footer. It isn't a catastrophe, IMO. > These are crucial questions because the answers would determine > whether this feature pressures people to use Org mode or not. We need > concrete answers because only that would enable us to see cleary now > whether the feature would do that if in use. In any case, we already have this in the wild, it just uses Content-type that current standards frown on. This proposal is just to use a different, more standard-compliant Content-type. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 30 12:13:20 2024 Received: (at 68687) by debbugs.gnu.org; 30 Jan 2024 17:13:20 +0000 Received: from localhost ([127.0.0.1]:36611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUrfk-00054u-Id for submit@debbugs.gnu.org; Tue, 30 Jan 2024 12:13:20 -0500 Received: from shell1.rawbw.com ([198.144.192.42]:13033 ident=root) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUrfj-00054m-CF for 68687@debbugs.gnu.org; Tue, 30 Jan 2024 12:13:19 -0500 Received: from alto (135-180-173-181.dsl.dynamic.sonic.net [135.180.173.181] (may be forged)) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 40UHCnM3003342 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 30 Jan 2024 09:12:55 -0800 (PST) (envelope-from kupfer@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host 135-180-173-181.dsl.dynamic.sonic.net [135.180.173.181] (may be forged) claimed to be alto From: Mike Kupfer To: Ihor Radchenko Subject: Org mode code evaluation (was: bug#68687: [PATCH] Use text/org media type) In-reply-to: <87mssn81dw.fsf@localhost> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> Comments: In-reply-to Ihor Radchenko message dated "Tue, 30 Jan 2024 12:13:47 +0000." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.1.90 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28313.1706634769.1@alto> Date: Tue, 30 Jan 2024 09:12:49 -0800 Message-ID: <28314.1706634769@alto> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: rms@gnu.org, 68687@debbugs.gnu.org, emacs-orgmode@gnu.org, stefankangas@gmail.com, Eli Zaretskii , manikulin@gmail.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: -1.0 (-) Ihor Radchenko wrote: > Max is referring to various security issues with evaluating code inside > Org mode buffers. They are known, but not relevant to Org text being > displayed in email MUA - Org never evaluates any code automatically > without user explicitly asking for it. And in MUA, Org mode is simply > used to apply faces. No other interaction with the displayed text/org > mime part is allowed. I can believe that Org text snippets are safe in an email MUA. But in the general case, I don't think Org mode is quite as safe as you implied. The last I heard, conversion from Org mode to another format (e.g., plain text or HTML) can result in code evaluation, without the user authorizing it (see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=48676). I would not expect random users to understand that format conversion is a potentially risky operation. mike From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 30 12:48:47 2024 Received: (at 68687) by debbugs.gnu.org; 30 Jan 2024 17:48:47 +0000 Received: from localhost ([127.0.0.1]:36652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUsE2-0000Q0-MA for submit@debbugs.gnu.org; Tue, 30 Jan 2024 12:48:47 -0500 Received: from mout01.posteo.de ([185.67.36.65]:60993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUsE0-0000PB-Eo for 68687@debbugs.gnu.org; Tue, 30 Jan 2024 12:48:45 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5DB5C240028 for <68687@debbugs.gnu.org>; Tue, 30 Jan 2024 18:48:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706636909; bh=OMfWFAUu43IJUSu/VNzcn/FGotGpWyBQ6sT11T8UGS4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=ak8AF/98ixuP39Ckq97FuHgphz42zzU3OYREpOUkDwSaW5HjX2zMGGP1N7fpK8Ovr fsOlnrDifm+UjVJpg+3Xb/d/Id6i1vcIuxMUBlRg/h/gFMr3ZRxusfpMzexTvuZmli yfPF5JctY/BphOr10isZEwdoDK3t+uPIR5V9z+EItZ0BFOSLadQMWUDH/SDHnDihMx B3QmvXxukl9mziuobWCT7BSL3MhrTn9q3umKcrlsIAqaCpyPyp5KqTZr/46ANKcRur l266rj6DCh6k3ja748eBKty3TqEa6czajnvsK+zcLAXy/kLL22y4vgkwZJxWwTcuAo CjxB+5644FI2w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TPXhX3wQ3z6tsB; Tue, 30 Jan 2024 18:48:27 +0100 (CET) From: Ihor Radchenko To: Mike Kupfer Subject: Re: Org mode code evaluation (was: bug#68687: [PATCH] Use text/org media type) In-Reply-To: <28314.1706634769@alto> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> <28314.1706634769@alto> Date: Tue, 30 Jan 2024 17:51:55 +0000 Message-ID: <87mssmvhdw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: rms@gnu.org, 68687@debbugs.gnu.org, emacs-orgmode@gnu.org, stefankangas@gmail.com, Eli Zaretskii , manikulin@gmail.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 (---) Mike Kupfer writes: > I can believe that Org text snippets are safe in an email MUA. That's exactly what I wanted to emphasize. > But in the general case, I don't think Org mode is quite as safe as you > implied. I did not imply that Org mode is safe. I directly said that there are security issues and that they are known. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 30 14:39:52 2024 Received: (at 68687) by debbugs.gnu.org; 30 Jan 2024 19:39:52 +0000 Received: from localhost ([127.0.0.1]:36890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUtxX-0003Q6-Ka for submit@debbugs.gnu.org; Tue, 30 Jan 2024 14:39:52 -0500 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:52391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUtxV-0003Pt-Ps for 68687@debbugs.gnu.org; Tue, 30 Jan 2024 14:39:50 -0500 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-55eee4a042eso3570354a12.0 for <68687@debbugs.gnu.org>; Tue, 30 Jan 2024 11:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706643575; x=1707248375; darn=debbugs.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=sM9btJ9ufGmLOzbKAl39H8G4Qc9FlM2R8XFPV93PWew=; b=SvpNBxAVaXac1HoA7shQ3YDBRpvlJl/YN0HXpFEoJXfmdbHyLpMhYOf1WEeRd4wrdt wX1Pw1m7RH//qLEPJRZ939U2pU+PiVc8ru7eSaQmFfiivix1AxxYU6wqr37zoU2r0mz/ 3BhicimmSuZolmcIqB43mtiE3T8gRANyHHUi1m1qx1VvHvrrymRBF+FxDKsbMRQIXjtK bxpZUz/MuChyh4hGJlP797wDBiET9o81u0y9K1RJXDtKb6Meu0UnkmVClpgUSxSEiRl7 PzS90p60lEN9Q26h9DYCYO0JiXKOsYi6Yzs+o3rO/Az2tRjFJeoiZgEqDvnBXbzRHURU sbPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706643575; x=1707248375; 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=sM9btJ9ufGmLOzbKAl39H8G4Qc9FlM2R8XFPV93PWew=; b=HQfjkyZI3BY7q2B8m7Dwbu5nQtQUgFXYzRwpKajQ4rHAfS5lsLUFnHEJdEGD3DlUGA ji0EB6e566UOzQTnpP72HzLsUXF5wmXfg1qIZztcsAzCyVT1SgX0BDPbw3ISRauhCQtT 8ANrD6J5p7I71foz3Kaq+G7Xxwoa+KI1G/L8a+N72FODfKQo5BA2f1z7iTYbfNeAGx2n OzpVjNgPq8NxIYFWqG4WMb7cpi0ZoJkFd6vExJowSO7j0BICA0HZgUb77LxT7Efb8xmh xhoPDd82CvhDS90SpwXK7/qt96wBSnpg9GlOe4KP/jVuxok7KPmrCPTV7S9jdNaXYWhu h7/Q== X-Gm-Message-State: AOJu0Yww7FloDVMLnAM2b4Zut57ltvvqebOIilaMNiD3TS3RX6UD9JjW XEpC0Zh1qIrF7fAeJRTHcgOBkHi07Nwcj5s9mH6+VrfDfHx0E3GwrOIAdMG9QQ+QBTeVWxTndtZ toXGnuHyTsBsH0x3yWQRDqDZ2hIeRsi3J5jZKGg== X-Google-Smtp-Source: AGHT+IHe5q5WG+oGgYTzmJ67grtZuNRNsMMGX+O+ZzdmSBpcI9Zn0aWGIPR4u5IySCrCuQ7L7sJ8IwKQpCrjWc7ocp0= X-Received: by 2002:aa7:d6d0:0:b0:55f:611c:2028 with SMTP id x16-20020aa7d6d0000000b0055f611c2028mr432913edr.21.1706643574831; Tue, 30 Jan 2024 11:39:34 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 30 Jan 2024 14:39:34 -0500 From: Stefan Kangas In-Reply-To: <87h6j1f08d.fsf@localhost> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <87h6j1f08d.fsf@localhost> MIME-Version: 1.0 Date: Tue, 30 Jan 2024 14:39:34 -0500 Message-ID: Subject: Re: bug#68687: [PATCH] Use text/org media type To: Ihor Radchenko Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, Max Nikulin , emacs-orgmode@gnu.org 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: -1.0 (-) Ihor Radchenko writes: > I see using text/org as an improvement. text/x-org is likely useless. > At least, > https://github.com/jeremy-compostella/org-msg/blob/master/org-msg.el > uses text/org, which may appear in email parts. > > However, AFAIU, text/org will fall into "standards tree" in IANA media > type specification, which means that it MUST be registered, as described > in https://www.rfc-editor.org/rfc/rfc6838.html#section-3.1 > > Registering text/org media type requires syntax spec. We are > still working on format Org mode syntax specifications. See > https://list.orgmode.org/orgmode/871rjhha8t.fsf@gmail.com/ and > https://orgmode.org/worg/org-syntax.html > > The spec is still not fully finalized, so we are not yet initiating the > registration, as we will need to repeat it again if we decide to make > further changes (https://www.rfc-editor.org/rfc/rfc6838.html#section-5.5) What does this mean with regards to the patch? Should we wait with installing it until that process is done? From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 30 15:31:40 2024 Received: (at 68687) by debbugs.gnu.org; 30 Jan 2024 20:31:40 +0000 Received: from localhost ([127.0.0.1]:36970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUulg-0004o4-1c for submit@debbugs.gnu.org; Tue, 30 Jan 2024 15:31:40 -0500 Received: from mout02.posteo.de ([185.67.36.66]:54903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUule-0004ns-UO for 68687@debbugs.gnu.org; Tue, 30 Jan 2024 15:31:39 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B7869240104 for <68687@debbugs.gnu.org>; Tue, 30 Jan 2024 21:31:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706646683; bh=7ByyrnBKJMJVvZGxFm1yYTlMJLCPegmRQ+HzZiWA/kY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=Gf8GlNIopzYJXnffAUL3zcokf/jJKm+BAAfkfIVianqOvs2eU15UKbZgEDisXw1r0 kRPTyLrieNe868CFDLsaIJfCevb9ghMKHlEfjJx61gZvgnwUFcO8DyQMFhQBTWNj28 +Bj1qLMtukaCN0liX3VGTUI0KxrZm0k2+/YzLHlTOF0WGFzdb1KMF8ajTlaKyhzgIG 8h/Z5sgMSllbi1lYmAMami9NtrdVR/MdtNYigLZ7w0wwfJpCUcj3//5YVMdbbrVfcL qVd8OiF+zixHLV9po0Gek8vI+V+C0uQbWOJh+k+d9Tr2rGG13EQdSXQm1nQFUgBwfB qiDEoJh+GH1pw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TPcJV5zb6z9rxM; Tue, 30 Jan 2024 21:31:22 +0100 (CET) From: Ihor Radchenko To: Stefan Kangas Subject: Re: bug#68687: [PATCH] Use text/org media type In-Reply-To: References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <87h6j1f08d.fsf@localhost> Date: Tue, 30 Jan 2024 20:34:54 +0000 Message-ID: <87bk92v9u9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, Max Nikulin , emacs-orgmode@gnu.org 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 (---) Stefan Kangas writes: > Ihor Radchenko writes: > >> I see using text/org as an improvement. text/x-org is likely useless. >> At least, >> https://github.com/jeremy-compostella/org-msg/blob/master/org-msg.el >> uses text/org, which may appear in email parts. > ... > What does this mean with regards to the patch? Should we wait with > installing it until that process is done? I see no reason to wait. We already have people sending text/org in emails. Recognizing mime parts marked as text/org as we already do for text/x-org will be a clear improvement. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 31 11:18:30 2024 Received: (at 68687) by debbugs.gnu.org; 31 Jan 2024 16:18:30 +0000 Received: from localhost ([127.0.0.1]:38962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVDIE-0003pM-Bo for submit@debbugs.gnu.org; Wed, 31 Jan 2024 11:18:30 -0500 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:46265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVDIC-0003p8-BP for 68687@debbugs.gnu.org; Wed, 31 Jan 2024 11:18:28 -0500 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-5102a877d50so6122618e87.0 for <68687@debbugs.gnu.org>; Wed, 31 Jan 2024 08:18:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706717892; x=1707322692; darn=debbugs.gnu.org; h=content-transfer-encoding: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=T25JWqddFUs5hCL1ShyHGEqN3CHwvPGu1nzObcFf2rQ=; b=cxxOX4AywSL55VobYVAX112Y1vOTyL49LqpbXbNdyY3yJTFkAhWBaFgEgNop38P5G1 XvNx5fO/VYTzfW2akzLO2tU2z/moybgT+TZ/pLmJoQKESo135OUZfjRhxZj/LZRE6jyl Qq2d4mOIPhN1pbu/MGkAtB2Kuu4mijUo8awSh5CkkQjyhAzadAzckHMbuN9+WwMcUKys fNjgaYB/r1gcMmXzh82gwUVmE9JzFc/5jJOa/T9DOOHUGNZPZENissTfgcevDy8cpBxb pzZ9ru5cuVZebIA7MoNXFfgDJHZgQaNCLe0Dnr4IIAQv+ol0H0EkxpD/yOqaza8pzivV U32w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706717892; x=1707322692; h=content-transfer-encoding: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=T25JWqddFUs5hCL1ShyHGEqN3CHwvPGu1nzObcFf2rQ=; b=OpRae6h3KsA4u+5GnbptNkhbbcY02KlzZ21kAHvYfa2P9lHkEKTxemfbq31L8KbZQo a3w5SQjkesc0E6boXKNB1QG7PVt8q2tDHFHKriumbFF7dTmnA/8mQ7qWCANe23tH2mfH c8sR2SnHBV99hwKxg7TS4gNgbjExiLDtlF22EfffX8wkhc3qhfSTyxtuUHnlBF8EOOWc pzVqhRB37YLfDdjZ1NAHkRyVPhp1nGwXkJVa8GHEY42dAzxBi4rqgBDYhldUiIZEPLks /Ot4Pfi5xN+s3frsQnsejtZQZN3swF+7XyoEjlOLIlqezxF3xEcqvHHPrsRn2EJh5K8+ FN6A== X-Gm-Message-State: AOJu0YyVCbPDwUQBgKIUSmRnmoFla/2Ny8HmjyGMlLDxszlBD4R0K/DI Temc0k2MGXDhEkP4N/J221S+W6AaGZHsSmq1XInhfaddxhvekQTE X-Google-Smtp-Source: AGHT+IFq3P/8q6Iv5uqe2f2S4BKh2r1qRHMqAVG4jeM1dJOS9N9e9RtPEvobbmSBJ9sYynfhp3vBcg== X-Received: by 2002:a19:9150:0:b0:510:1879:c86d with SMTP id y16-20020a199150000000b005101879c86dmr1476515lfj.16.1706717892243; Wed, 31 Jan 2024 08:18:12 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id j9-20020a056512344900b005100f4724dcsm1869879lfr.211.2024.01.31.08.18.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Jan 2024 08:18:11 -0800 (PST) Message-ID: <3c8e8b77-77d1-4522-85d5-5cce2cc020ca@gmail.com> Date: Wed, 31 Jan 2024 23:18:10 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#68687: [PATCH] Use text/org media type Content-Language: en-US, ru-RU To: Ihor Radchenko , rms@gnu.org References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> From: Max Nikulin Mail-Followup-To: Ihor Radchenko , rms@gnu.org, Eli Zaretskii , 68687@debbugs.gnu.org, emacs-orgmode@gnu.org, stefankangas@gmail.com In-Reply-To: <87mssn81dw.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, Eli Zaretskii , emacs-orgmode@gnu.org, stefankangas@gmail.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: -1.0 (-) On 30/01/2024 19:13, Ihor Radchenko wrote: > Even when text/org is rendered using Org mode, there is nothing > pressuring people to use Org mode there. It is just visuals. Org major > mode is not activated. I am not familiar with gnus & Co code, so I am confused by (funcall mode) in `mm-display-inline-fontify'. Doesn't it activate the major mode through `mm-display-org-inline'? On the other hand, I am afraid, changing `mm-inline-media-tests' to use ("text/org" mm-inline-text identity) ("text/x-org" mm-inline-text identity) by default instead of `mm-display-org-inline' for safety and to avoid loading of Org mode will cause a lot of complains from Org users. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 31 11:29:09 2024 Received: (at 68687) by debbugs.gnu.org; 31 Jan 2024 16:29:09 +0000 Received: from localhost ([127.0.0.1]:38986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVDSX-00049W-9i for submit@debbugs.gnu.org; Wed, 31 Jan 2024 11:29:09 -0500 Received: from mout01.posteo.de ([185.67.36.65]:41413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVDSV-00049A-NL for 68687@debbugs.gnu.org; Wed, 31 Jan 2024 11:29:08 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7E48E240027 for <68687@debbugs.gnu.org>; Wed, 31 Jan 2024 17:28:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706718532; bh=Qtkw947MTpDLqH/k7/QvUMM3kvfziIP8q/9OvkncEQk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=JMd1eDcU5O7t/Xw1gnh+yvvL9GEXqsANYA6ulwa/eyjzhCUYb+HkjAWOxym2N9Zr/ gDTFx8AhEelAGFgo/Oh07BZdDIygIjyRTjn73QYKaVUlX3Q2O4+5bv/YqJzRK/Pnci 7gRoHmSlhjqQMm5lYzdG3vy07abMy8RylxqQOjQkMRr94wuywKUok8YdFMTR9XRXtx riGAnT7iBbzRfd77rRNToTbXyxpnPheYlRAT0t+SMcpfYjXDvqS6QXlLRrV3qu9/oB rLVXAI9dg/FH4Q/CQIAVIJL8KHmjty9MJP3V3a1OuBb2WYq02XDniDRP98y04lcdtd Jl04UTaHgQQfA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TQ6tC2vxwz6tsB; Wed, 31 Jan 2024 17:28:51 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Subject: Re: bug#68687: [PATCH] Use text/org media type In-Reply-To: <3c8e8b77-77d1-4522-85d5-5cce2cc020ca@gmail.com> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> <3c8e8b77-77d1-4522-85d5-5cce2cc020ca@gmail.com> Date: Wed, 31 Jan 2024 16:32:22 +0000 Message-ID: <8734udo44p.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, Eli Zaretskii , emacs-orgmode@gnu.org, rms@gnu.org, stefankangas@gmail.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 (---) Max Nikulin writes: > On 30/01/2024 19:13, Ihor Radchenko wrote: >> Even when text/org is rendered using Org mode, there is nothing >> pressuring people to use Org mode there. It is just visuals. Org major >> mode is not activated. > > I am not familiar with gnus & Co code, so I am confused by (funcall > mode) in `mm-display-inline-fontify'. Doesn't it activate the major mode > through `mm-display-org-inline'? It creates temporary buffer, activates Org mode there, and copies back the fontified text for display inside message. I do not know about any security issues when one merely opens Org file without actually executing Org mode commands. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 31 11:31:05 2024 Received: (at 68687) by debbugs.gnu.org; 31 Jan 2024 16:31:05 +0000 Received: from localhost ([127.0.0.1]:38991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVDUO-0004Em-PX for submit@debbugs.gnu.org; Wed, 31 Jan 2024 11:31:05 -0500 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:61810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVDUM-0004E8-A0 for 68687@debbugs.gnu.org; Wed, 31 Jan 2024 11:31:02 -0500 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-51117bfd452so4183813e87.3 for <68687@debbugs.gnu.org>; Wed, 31 Jan 2024 08:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706718646; x=1707323446; darn=debbugs.gnu.org; h=content-transfer-encoding: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=ykGWJHV3/Q7GnOJJNj+IExjHzB9152lG5mutN958/g8=; b=PArAiVqNISTLpvhqYc4hJC9ESQAVW5KUB8uHinImqHmf6dfsyV2ABybfAYea8nQzC5 IvCJz5IWrhhuzZjwTfK+Kvyin9rd1LmZ6OYn65bGdCmujxb8lXL/B1iuNB3Z3GFViXeU PNmdmsMsn+X4Qin8mciVnAnF+uH2QFGKofGfPBB3yDIcvH3viMsEpjcnPJpp3FSREXle eAlXwavakFh71F0ZirXeiQbfsTaW9vHOwguB8Zh48bi4mS0dpXUa1pP9LYNJflLQbLgS CmFZd40y96Ci05dPrzWMTjp47NcJ8HdPnREbb4oxksRYmhjYAPysLMZCPNcM6a2+Isek 89Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706718646; x=1707323446; h=content-transfer-encoding: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=ykGWJHV3/Q7GnOJJNj+IExjHzB9152lG5mutN958/g8=; b=aj5cBoB4mmPSpp2Bi2ls9sGyAbtH5COd1tU3i9uqdOFLHSHdtERZXJzZKBeP3gn7kq oL0X7nG0mLnIhNIlNUTK49huOQiqSCYaj35wVYG7TppH9/TtIwtygf3bLvMVLgw/QKmr Z6GaS1at74ofQHUassVE/PrUNh3ivJGLw2I+/K1UpghcR2yQzpazfW32xTQKv9Ww2ebF oJh/PyFi7rujLZ+FddOxVSeT+X4fUkO3gkS+AJbwqvHAlTw4L3y/EOE2Td2WzpM82Mj7 at10SBLx9jaOATY6pOI9i5O7Jnzc06C8qFDW+IFT6iINMnjGcx2CHEpJhLzpLN4mQNt8 Es4Q== X-Gm-Message-State: AOJu0YyzdnoywKxu3la8cJuAdwNot10E0CXWVdMJp3fHX/6miO8x9e6J HCuYX86GtnkeYrmSTdlXj9Ln+wZeMTsxcYQ7A+WdSJ13roEL0vWXT6VgescMQyg= X-Google-Smtp-Source: AGHT+IEWNnSGm987fp+XPnribZCkZDPQoszEPJGQOnkMcW7zH+b/HtJ08PeZwFfq0wGVJ7vxUtWp0g== X-Received: by 2002:a05:6512:2016:b0:511:2a02:3337 with SMTP id a22-20020a056512201600b005112a023337mr545243lfb.47.1706718646154; Wed, 31 Jan 2024 08:30:46 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id d19-20020ac24c93000000b0051025dcd3e0sm1873348lfl.69.2024.01.31.08.30.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Jan 2024 08:30:45 -0800 (PST) Message-ID: Date: Wed, 31 Jan 2024 23:30:44 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#68687: [PATCH] Use text/org media type Content-Language: en-US, ru-RU To: Eli Zaretskii , Stefan Kangas References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <86plxoblrz.fsf@gnu.org> From: Max Nikulin Mail-Followup-To: Eli Zaretskii , Stefan Kangas , 68687@debbugs.gnu.org, emacs-orgmode@gnu.org In-Reply-To: <86plxoblrz.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, emacs-orgmode@gnu.org 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: -1.0 (-) On 26/01/2024 14:23, Eli Zaretskii wrote: >> Max Nikulin writes: > >>> diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el >>> index 3c7e3cbdf1a..b10da0c143a 100644 >>> --- a/lisp/gnus/mm-uu.el >>> +++ b/lisp/gnus/mm-uu.el >>> @@ -394,7 +394,7 @@ (defun mm-uu-emacs-sources-extract () >>> >>> (defun mm-uu-org-src-code-block-extract () >>> (mm-make-handle (mm-uu-copy-to-buffer start-point end-point) >>> - '("text/x-org" (charset . gnus-decoded)))) >>> + '("text/org" (charset . gnus-decoded)))) >>> >>> (defvar gnus-newsgroup-name) >>> >>> diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el >>> index 5ff75deb4e6..900099433c4 100644 >>> --- a/lisp/net/mailcap.el >>> +++ 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")) > > I'm not sure the removal of text/x-org in these two hunks is a good > idea: could it perhaps cause trouble to someone, e.g. if an email > message is sent from Emacs with this change and read by Emacs without > it? Changing of `mm-display-org-inline' may be postponed. I am curious however if there are a lot of users overriding their /etc/mime.types to avoid application/vnd.lotus-organizer. However I am unsure whether `mm-uu-org-src-code-block-extract' is used to send messages. If it purpose to decode received messages then the change should be safe. I had a hope to receive some comments from developers familiar with Emacs mail clients. I have realized that I missed `mm-automatic-display' there "text/org" should be added similar to `mm-inline-media-tests'. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 31 15:00:34 2024 Received: (at 68687) by debbugs.gnu.org; 31 Jan 2024 20:00:34 +0000 Received: from localhost ([127.0.0.1]:39100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVGl7-00021b-I2 for submit@debbugs.gnu.org; Wed, 31 Jan 2024 15:00:34 -0500 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:52380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVGl0-00021I-Tk for 68687@debbugs.gnu.org; Wed, 31 Jan 2024 15:00:32 -0500 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-55eee4a042eso163703a12.0 for <68687@debbugs.gnu.org>; Wed, 31 Jan 2024 12:00:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706731211; x=1707336011; darn=debbugs.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=gPdgDNszz0wdPXBY3ancwp/GQH4rqb+XjPJ219bmrRE=; b=lMwG/RMkGXYsY4hOJazTxRMgYk/N+Aj+y4TNmcP91UlEVN/Hx2mgUyt+bR2rt9rYE3 0S8E3Y6NR4LyIZWyzzTUXpL4LMjmiClZI7MxsMO2/uFJkt8go5GBmwrewTWW/BekKa+n WRThVZbv1zA5uYg0anMjp3pR45ynz8LbYXoUbIVnM27lqVw8DzuhLmJ9SHgTuUIDAiKP BeaotJ/nv05XLGNbATiUSEvrQspeZPTiIXi8PnE6j8WqIJn+F20mg5YWut1r4nKwOpSS Uzr0pQCB6LeCE/J49Za+NZM0afeBv7/PsltAwJu4tpQ5V0rgwdbouZGRw3QmWZ4ssvrb yhIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706731211; x=1707336011; 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=gPdgDNszz0wdPXBY3ancwp/GQH4rqb+XjPJ219bmrRE=; b=wwEV5WGGh4KuDYciM4iAhIBQkQkj4iYIOQn9VRHBQp7H0IWV6DTVA90PF/K0qMNtB8 twY/sJQd7hzAi32eCjUQfUhARb498xLjZM33az/+zm5kYpKUsggD9Dp8+4TQBjosuf/I MSPVazmKw69uAtIP8+nVvKdZga0Lvz/AcK45hI91XXjKqZONE0mxigOuD7dgClAZijMn zv3CXCQqpe69JJQD6rkT/grdfYfjC1YuITMRhYEghsgo1zC1kz4CzpbSRHgTrVxKX8Jv Akb5peGydUeAWaoh7TAAbcOjeKcmyHietq4hIkeYAq97SN2Ru0poSoykpyKjjCgxkQ8o Coxg== X-Gm-Message-State: AOJu0YzflLc4utQ+15ty5OytvvqOpAVSyM24JKxKFzM9INCkwqCveVZT PHzsMMLjjnmBWEACa8avCHtK/r6Qwrdudqv7vFFgTKH/gtvgU1KPXgRshEGyoluh4g5UZ3FPr6+ AY5rFiegjDVxsJ+5fW3yrWFUiqe4= X-Google-Smtp-Source: AGHT+IHKvt3bVCPLyZjwSOt301VcdFk9Ns6CctXdf3banRfXP6M+k8dm/ToKHLtqZUFCc8a2QQYuP1xGm78uP4OqSJE= X-Received: by 2002:aa7:d858:0:b0:55f:832f:97da with SMTP id f24-20020aa7d858000000b0055f832f97damr1917774eds.23.1706731211100; Wed, 31 Jan 2024 12:00:11 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 31 Jan 2024 15:00:10 -0500 From: Stefan Kangas In-Reply-To: <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> MIME-Version: 1.0 Date: Wed, 31 Jan 2024 15:00:10 -0500 Message-ID: Subject: Re: bug#68687: [PATCH] Use text/org media type To: Max Nikulin , 68687@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: emacs-orgmode@gnu.org 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: -1.0 (-) Max Nikulin writes: > From 8b71393625f11590e99896808bbd04ed83f7917e Mon Sep 17 00:00:00 2001 > From: Max Nikulin > Date: Wed, 24 Jan 2024 21:16:28 +0700 > Subject: [PATCH] Use text/org media type > > Avoid "x-" prefix deprecated by rfc6648 for Org mode media type. > * lisp/net/mailcap.el (mailcap-mime-extensions): > * lisp/gnus/mm-uu.el (mm-uu-org-src-code-block-extract): Replace > text/x-org by text/org. > * lisp/gnus/mm-decode.el (mm-inline-media-tests): Allow text/org in > addition to text/x-org. > > Make media type defined for Org mode consistent with > > > See emacs-orgmode: Org mode MIME type. Sun, 21 Jan 2024 20:56:15 +0700. > https://list.orgmode.org/6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com > --- > lisp/gnus/mm-decode.el | 1 + > lisp/gnus/mm-uu.el | 2 +- > lisp/net/mailcap.el | 3 ++- > 3 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el > index f91755e967b..cae737e5a3e 100644 > --- a/lisp/gnus/mm-decode.el > +++ b/lisp/gnus/mm-decode.el > @@ -246,6 +246,7 @@ (defcustom mm-inline-media-tests > ("text/x-sh" mm-display-shell-script-inline identity) > ("application/javascript" mm-display-javascript-inline identity) > ("text/dns" mm-display-dns-inline identity) > + ("text/org" mm-display-org-inline identity) > ("text/x-org" mm-display-org-inline identity) > ("text/html" > mm-inline-text-html > diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el > index 3c7e3cbdf1a..b10da0c143a 100644 > --- a/lisp/gnus/mm-uu.el > +++ b/lisp/gnus/mm-uu.el > @@ -394,7 +394,7 @@ (defun mm-uu-emacs-sources-extract () > > (defun mm-uu-org-src-code-block-extract () > (mm-make-handle (mm-uu-copy-to-buffer start-point end-point) > - '("text/x-org" (charset . gnus-decoded)))) > + '("text/org" (charset . gnus-decoded)))) > > (defvar gnus-newsgroup-name) > > diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el > index 5ff75deb4e6..900099433c4 100644 > --- a/lisp/net/mailcap.el > +++ 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")) It's been many moons since I last looked at email attachements in any detail, so I have some questions. 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? IOW, I'm asking if it is backwards-compatible to remove "text/org", in either direction. Will .org files be displayed in the same way as before or not on both new and old versions? I've noticed on my machine that .org files have been interpreted as application/vnd.lotus-organizer. Presumably that's due to some local configuration in /etc/mime.types on my distro. Is that correct? Is it documented somewhere how to override that system configuration in Emacs? 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. On the off chance that someone is opening such files from Emacs, they could just revert that locally. WDYT? > "An alist of file extensions and corresponding MIME content-types. > This exists for you to customize the information in Lisp. It is > merged with values from mailcap files by `mailcap-parse-mimetypes'.") > -- > 2.39.2 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 05:40:41 2024 Received: (at 68687) by debbugs.gnu.org; 1 Feb 2024 10:40:41 +0000 Received: from localhost ([127.0.0.1]:40334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVUUq-0000at-Rv for submit@debbugs.gnu.org; Thu, 01 Feb 2024 05:40:41 -0500 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:61626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVUUp-0000aa-95 for 68687@debbugs.gnu.org; Thu, 01 Feb 2024 05:40:39 -0500 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-51109060d6aso1053315e87.2 for <68687@debbugs.gnu.org>; Thu, 01 Feb 2024 02:40:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706784023; x=1707388823; darn=debbugs.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=YjrDMYXE6pLLl7pm83MgaH7Vj7cWVEpzedlwXNEvJLhcLrXtvs3Mx62pyjap3AChep F0VJsYdp3s03zoTmgkZFKBhb4xTDxicD6M+/JANFsbBAdiD6Qb8jUe28KdyZzHuMhe1n Py5s5KxzKHngl2ket4GvWUSMv9orte2q9v/BeQxGuVFgS/08IxqnTyZ9R/4hlDogrDM9 x+/qWQ9/SWyMO0th1ucxB5LlZ4jpCzHgolGdf2o7QpRfVPQewC2avdZ/k6sN1N1jfoMC Pm4YNvrAccbGkFQZLSGl0djZ1ADzUS+NM4ds/LMRafslzrBEFrlDLLOdrVCqqabqfDTh 9Umg== 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=VvYI1xps98Z7FIf7/O1oDPcY9T3PYuP4sELHtRllGyAC3OS5pCYh45d61Y3akXKgYS uqAAx2AQuKDzvwxNqjDFJCtysOTYSQkWOIXHLhgyY3LM/PjqgMNOG5/r/nmyXTJ1nE3H 7CRxGcG2ujVQchqpgCzJJPpmfj7pKBlqWsOpu2HA/e8NINKtkAOzEIdmqnJpJK/sfyYi 1HDVNnhzzjCeZrCgFGJWGZiv+I+D1QBui6LaHWw8ekQTpvfbBjioYzjYzQrqDOT1hzbT 3zzbLF8pVM9vZqcC0XZ5eRlMAiVwR+JS9k6RE5YwY+FckwXfPy4lNkwUZngnUpLmzavc pjNg== X-Gm-Message-State: AOJu0YxO4ADcU2wM3vnLJkacffpQfKNp9P/g4Pm7CIpItuqQMWyBBPup ods6WWlzw+abYgofXZRIOQH0q8UmXC3mdWYbIfmanEIFbbsJ424g 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 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 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: emacs-orgmode@gnu.org 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: -1.0 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 22:38:38 2024 Received: (at 68687) by debbugs.gnu.org; 2 Feb 2024 03:38:38 +0000 Received: from localhost ([127.0.0.1]:43399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVkNy-0000Hx-7z for submit@debbugs.gnu.org; Thu, 01 Feb 2024 22:38:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVkNu-0000Hh-FV for 68687@debbugs.gnu.org; Thu, 01 Feb 2024 22:38:36 -0500 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 1rVkNd-0006bH-Cu; Thu, 01 Feb 2024 22:38:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=HV+5gKpNnewDkHg/rbqWKjtflm1g57kMg3/TmcfvsBo=; b=HDKYmzldCct1 Yo4Z0+Eryg7eCCoztrbL3LTxXDj/RkfPS5hT7vFkUyDP1K4w6SBQdO1itHTo76p8Cdxw5d94dvCMd W8GfH5y5m1F3Y1+NtnlDxr2QJdNdbTAIrKnhP83YlnqJhXp0ExitopNKVPTwv4h5hgjelklsf9fij XltUvcmH39aPeLPyjgAgFmWsExjTwicXggOXJnc251NaRunhfeJJU7iFG0vZobsm7yb0vQCNjlHTt LVk3N8LVjq8YUwDAqsMuKcdedIBS1TYvC4nNyh2v3gwyqPdoVrTC1tPN9vWKuoWiKGgB6avT7jUx8 LBfHncEHzPcrnKEjhlZ6cA==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rVkNc-0007za-6b; Thu, 01 Feb 2024 22:38:16 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Ihor Radchenko In-Reply-To: <87mssmvhdw.fsf@localhost> (message from Ihor Radchenko on Tue, 30 Jan 2024 17:51:55 +0000) Subject: Re: bug#68687: Org mode code evaluation (was: bug#68687: [PATCH] Use text/org media type) References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> <28314.1706634769@alto> <87mssmvhdw.fsf@localhost> Message-Id: Date: Thu, 01 Feb 2024 22:38:16 -0500 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, emacs-orgmode@gnu.org, stefankangas@gmail.com, eliz@gnu.org, manikulin@gmail.com, kupfer@rawbw.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: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I did not imply that Org mode is safe. I directly said that there are > security issues and that they are known. Could you plesae post a pointer to a desciption of them? -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 22:40:28 2024 Received: (at 68687) by debbugs.gnu.org; 2 Feb 2024 03:40:28 +0000 Received: from localhost ([127.0.0.1]:43404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVkPj-0000Kv-Op for submit@debbugs.gnu.org; Thu, 01 Feb 2024 22:40:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVkPg-0000Ki-Ic for 68687@debbugs.gnu.org; Thu, 01 Feb 2024 22:40:25 -0500 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 1rVkPQ-0007NV-Am; Thu, 01 Feb 2024 22:40:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=MtgmIYpmRJjX06Z0VZIOswbYO+azdLiHRL2LMqGdgY0=; b=Sweg+oCy5I9J WXJa9CwEbJ0VCkmFEwjr8GV4l3L4oM8QJIBIEjsnYE6HMhlqaA5AYcvb0d/sXow2IIpHYA3t18Buy jZ1c1AOLCaKO1CnwA7nr6kTT88j1YE7d49Jn7mJmSTWRHKlHPyCtPQtRuN2ee8VAZJ23BrHv/cDH8 hI9l9iG6S3dzbn0+joYH6C73wS4CGCIYSuTwU1Kzvlsjn9oC19m8O3TnwJWmC0WEOguZdsykP5+iF YByqBy4rJMWeR+V3PHaRgO2Y/JaGZtHKqB3VQnHaYs9hzI2WUs2dXjdkFoQFK7glJzfgsBtZHlysw 8EOBFmLRgvtEIp8WaZwM7Q==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rVkPO-0008LA-RN; Thu, 01 Feb 2024 22:40:06 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Ihor Radchenko In-Reply-To: <87mssn81dw.fsf@localhost> (message from Ihor Radchenko on Tue, 30 Jan 2024 12:13:47 +0000) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> Message-Id: Date: Thu, 01 Feb 2024 22:40:06 -0500 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, eliz@gnu.org, emacs-orgmode@gnu.org, manikulin@gmail.com, stefankangas@gmail.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: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > It may or may not depending on user customization `mm-inline-media-tests'. > Just like with text/html, application/javascript, text/x-sh, images, > etc. I looked at the definition of that option, and at the function `mm-display-inline-fontify' that it calls. That function is nontrivial, so I can't tell, in a short time, what it does and doesn't do. > Even when text/org is rendered using Org mode, there is nothing > pressuring people to use Org mode there. It is just visuals. Org major > mode is not activated. That is one good thing. Maybe that means it's fine. But you've told me little about what things `mm-display-inline-fontify' does, only that they do not include selecting Org mode. Could you please tell me the main things it _does_ do? > Max is referring to various security issues with evaluating code inside > Org mode buffers. They are known, but not relevant to Org text being > displayed in email MUA - Org never evaluates any code automatically > without user explicitly asking for it. I understand now. I agree, that is not an issue for this specific point. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 23:59:06 2024 Received: (at 68687) by debbugs.gnu.org; 2 Feb 2024 04:59:06 +0000 Received: from localhost ([127.0.0.1]:43448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVldq-0002XT-6q for submit@debbugs.gnu.org; Thu, 01 Feb 2024 23:59:06 -0500 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:53262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVldn-0002Ww-Lc for 68687@debbugs.gnu.org; Thu, 01 Feb 2024 23:59:05 -0500 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2d07ffa0a9cso7539281fa.2 for <68687@debbugs.gnu.org>; Thu, 01 Feb 2024 20:58:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706849927; x=1707454727; darn=debbugs.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=FSys50LomsgxRWUIA5m1J9yeuKxinoSmyKN8BJ9qPuw=; b=RJyskw//oYTUmLrhge37nK1be1UY2eUnx9wPn5M1MMrij8IrrwqvsfPpoyl4Qr3TOX L6PGcdd6spC0zva2aijecmdroz35781AMDV5Zm9y2LRV9xCVfBFN9Ns+1vMU/ei7Uxr/ aaomfuEgaQAH9xTP9QnDK417dBrCiiuLzUO6jsXlMl4ihGM6OfFqAdP8Pev4Rg5bP+Y2 6aGQLFZs+txeXs5oV9CNIfdvVi9/VceIPpehVozqfRTx431LqXpiBCHCk1f4QSeYtKY4 4RwPcOWTA1zeX0PEzOpkhmargh9F0LQ4qgXSo7W44krnq7aZ0d/61VWqAs7ZTIHNsT+t m4Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706849927; x=1707454727; 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=FSys50LomsgxRWUIA5m1J9yeuKxinoSmyKN8BJ9qPuw=; b=pGzb8XAIJeui5PjSHhRf89bGDz+SJ2MuDLC52GpkRxoj4U8Y50hG9ktA1OYjMzv2up oH29nUhXB3yepCXNNrJxVwN2B0CFq4Nku3gs3PiK6DXyzR7Q3FXvZnjdT8w5b8ibd9f7 iEPPu1bmtfd/qMb7WBN8WK24i2W3Dfz+q89az0PmEzduGlyPhEBjl4383/Qa+cCxblH+ lOGfYJOmlvjAfZV0O3gvFc5RPmrvLvGkKQ8b7JM77Fv1KRk6KqX2btGP0e6tihQK16q6 xRn9rhxBUstjaEM8MyKyEQlf3kWJ7RbvOpmwzGLVnBChSV8lrHc84x9XmN4IBtjpYx5m MmhQ== X-Gm-Message-State: AOJu0YxrlIASLHvxDEvIVNM8roXzH2HESYIv4bLjBV1iiptPmi5GRZxt mCSa+NQexpUroIzfO0sv4ObJgYZU2QMrH2QiSDcw+dDEMVN1Firv X-Google-Smtp-Source: AGHT+IGUyq4jGwqGAiqf6Ty95/cb+SshBVua6xi8i28+xlwSw9rqUIkSlUbIguCQeuHwiDyv8adCcw== X-Received: by 2002:a2e:8e6b:0:b0:2d0:6f23:7cd7 with SMTP id t11-20020a2e8e6b000000b002d06f237cd7mr426331ljk.12.1706849926908; Thu, 01 Feb 2024 20:58:46 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWPZ+KowA8BT19fVfzW9hUeIubxjuZMdRy8Hgug7x3IilYfyF01bp2WaXHXRa2inMkURmLhBkN6WQI2o5ljYbKkJLZ26Hf16ka23Q3AXhxlKU2YKYol5oOIMowfQ2wB3q3EVZJU2tq8OJ42rlp+UvjNTopC5nbmXC1axyB9SIauWYj7v1Cwl+OjGRqMszMCYHRJARESItjr Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id n21-20020a2e7215000000b002cd65f9ce8asm147215ljc.118.2024.02.01.20.58.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Feb 2024 20:58:46 -0800 (PST) Message-ID: <87bc23dd-7c0b-4f9a-a54d-29716e948c5c@gmail.com> Date: Fri, 2 Feb 2024 11:58:44 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#68687: Org mode code evaluation To: rms@gnu.org, Ihor Radchenko References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> <28314.1706634769@alto> <87mssmvhdw.fsf@localhost> Content-Language: en-US, ru-RU From: Max Nikulin Mail-Followup-To: rms@gnu.org, Ihor Radchenko , kupfer@rawbw.com, 68687@debbugs.gnu.org, emacs-orgmode@gnu.org, stefankangas@gmail.com, eliz@gnu.org In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, eliz@gnu.org, emacs-orgmode@gnu.org, kupfer@rawbw.com, stefankangas@gmail.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: -1.0 (-) On 02/02/2024 10:38, Richard Stallman wrote: > > > I did not imply that Org mode is safe. I directly said that there are > > security issues and that they are known. > > Could you plesae post a pointer to a desciption of them? I would strongly prefer to move discussion of Org security to a dedicated thread on emacs-orgmode or emacs-devel and leave this bug to media types used for Org. Whenever the suggested patch committed (as a whole or in parts) or not, admit that Org mode is already used as media type handler for mail messages and downloaded files. I have tried a couple more ideas, but have not managed to achieve code execution when files are loaded (assuming default or plausible user settings). If Org keystrokes are not active when mail messages are opened then it should be safe enough. (However I suspect an issue unrelated to code execution.) If Emacs or Org mode has severe issues then it is possible to exploit them even without the patch. Just send a message having 3 attachments covering all variants of Content-Type. The point is to minimize discrepancy related to Org mode stuff within Emacs and outside of it. E.g. in default configuration Thunderbird on Debian 12 bookworm sends attachments as text/org. Emacs core uses text/x-org or application/vnd.lotus-organizer. With no action taken it will last further. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 02 02:10:02 2024 Received: (at 68687) by debbugs.gnu.org; 2 Feb 2024 07:10:03 +0000 Received: from localhost ([127.0.0.1]:43498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVngY-00017t-F8 for submit@debbugs.gnu.org; Fri, 02 Feb 2024 02:10:02 -0500 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:56823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVngW-00017C-CK for 68687@debbugs.gnu.org; Fri, 02 Feb 2024 02:10:01 -0500 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2cf4fafa386so22953451fa.1 for <68687@debbugs.gnu.org>; Thu, 01 Feb 2024 23:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706857784; x=1707462584; darn=debbugs.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=URDuo5Wj6+lDQkBr3yqSro9h1OsLXr1jLq7egnN3lYhsRykOAQn0ra78qAwLY+kLHC lVgcej0yop6ViEZLpukMfbv939F6DyT2X//kI9dehBJzDqKV4Ngm+mEI1tJMYlpz/f5v XSVZPtbC8TT5rXGGIvLO1/fVSTmAdZuh/e6zA+thOYtPWFmLm2XYN6XgBR8+Vj1zwnUl QtuiQ/vjkQ/Lz7PNcix7gu2aADHrSE5Yp6STlBDzrziWtbJ/vN0LvN45fLbd1n+5ooow Xp6u2x0mqXKhTvPFqcIfh2CuAXtKyaqKwFmjLGbmxY7CVo1TTnPPK0x+4L3Oc8oIMbVY F5VQ== 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=vK/MwQ+g9vuHjQDrRSRdHRxotqS5x+WhNwPQQLEdbILn7F41EbQAScLvj7LCJUK+ze G6DHXFJJnI91dcyLliSK4rr+69NNmSPaGsxwbKTlfNTMU3QVL5coJslY1JYaXC8Sl0fw c0hq0AhunCL9/FEjJPq6ZU+Z90+QlymZJVPW7GydUg7uQRjn4282CtatKrvJvcruR8nT q6z0XYeyr6Vr4zpPNbSi4zqdQg0TQibfJ2NfrbYm7Rj17NrZY6msTogBUwyxzenyzJfd evfa6GaLtA8mQXfXat5UIFRtrQJSOvgAelge2M07wA2gvuVUw6SxivRYZt0eXiMR7IyW tgvA== X-Gm-Message-State: AOJu0YySkTsq0ApdtfIoE5xKqgqZvbGVpx4jtMvSanmtUMJ2BPiMxW2J Tl+/Q/bWcYqx+DD1hEGrv6IelSxieox8fshkkNRXGs0We2o8mhd1ZMe/m7lOAWpnIBz+6bjeKwz xc3hujhoxBG6agf59w1SViK4pjjI= 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: emacs-orgmode@gnu.org 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: -1.0 (-) 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? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 02 02:15:55 2024 Received: (at 68687) by debbugs.gnu.org; 2 Feb 2024 07:15:55 +0000 Received: from localhost ([127.0.0.1]:43508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVnmE-0001Kq-QY for submit@debbugs.gnu.org; Fri, 02 Feb 2024 02:15:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVnmB-0001KZ-HW for 68687@debbugs.gnu.org; Fri, 02 Feb 2024 02:15:52 -0500 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 1rVnlu-0004o1-QW; Fri, 02 Feb 2024 02:15:34 -0500 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=XefKbaZAKD6xne5eXv5AaAwakClhlfq1C2dzJrpE8qc=; b=KNml7aXc8LAO QOtV9te3g0ZGNMuuiiQFtn79gwpPyNIugsm2yL7Dj2JMrVBiB4GGptT0cDFWwvjt+JAw12X0q0FIY k95Cs52oTygP86u/3oUr3XRRg+ALmV2O6PdTtLT6JkYDmImbYoVi+nUViv1ayxf9D/dAJA84JfLWY MMVWfSMUS+lbL3mMZ5flKaGahzLZyoBVhO6YDPSqmOgRYXIoyBUKc4tJrLonW2KcGw9mYVJR02yNl +xzvsQDPT48vA0gjsVLj4zhYxHCAOPX1KUdd5evrvW5D3Qwe7mMUMHr5iU2HWWyxnm18AXMH6Mke1 rVcZYqKauqWujH3V/AxtxA==; Date: Fri, 02 Feb 2024 09:15:18 +0200 Message-Id: <8634ubz69l.fsf@gnu.org> From: Eli Zaretskii To: rms@gnu.org In-Reply-To: (message from Richard Stallman on Thu, 01 Feb 2024 22:40:06 -0500) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68687 Cc: 68687@debbugs.gnu.org, yantar92@posteo.net, emacs-orgmode@gnu.org, manikulin@gmail.com, stefankangas@gmail.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 (---) > From: Richard Stallman > Cc: eliz@gnu.org, manikulin@gmail.com, 68687@debbugs.gnu.org, > emacs-orgmode@gnu.org, stefankangas@gmail.com > Date: Thu, 01 Feb 2024 22:40:06 -0500 > > > It may or may not depending on user customization `mm-inline-media-tests'. > > Just like with text/html, application/javascript, text/x-sh, images, > > etc. > > I looked at the definition of that option, and at the function > `mm-display-inline-fontify' that it calls. That function is > nontrivial, so I can't tell, in a short time, what it does and doesn't > do. AFAIU, that function copies a portion of buffer text to a temporary buffer, determines the correct major-mode for that text, then invokes that major-mode and fontifies the text according to that mode, and finally copies the fontified text back into the original buffer. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 02 11:28:38 2024 Received: (at 68687) by debbugs.gnu.org; 2 Feb 2024 16:28:39 +0000 Received: from localhost ([127.0.0.1]:45479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVwP8-0005gu-DZ for submit@debbugs.gnu.org; Fri, 02 Feb 2024 11:28:38 -0500 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:55651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVwP6-0005gf-Ih for 68687@debbugs.gnu.org; Fri, 02 Feb 2024 11:28:37 -0500 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-5100cb238bcso4219221e87.3 for <68687@debbugs.gnu.org>; Fri, 02 Feb 2024 08:28:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706891299; x=1707496099; darn=debbugs.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=lkNvkBrsTsxbnUDG+4TgEDS0ZewT7ao8gm0SnQzC8SAwkC20rJnSzDZAE2/MZaoG5C TEauoPkh/d5f6a6dJJ5xLhfUyg900bINXyqI05Ekathys3a8xhE/x43M0gRmv8FCWbTZ CxRjCvbO6ML2fvkoWvZ+4EAPCbN8N2uZ4nQWQcy8Oag89SwBasaS4sQArXR1L/DASiG/ c2Zb7bfmvEoAdKZf7KVSu7MPB+uCgUQSvM/rL4N40qq/MQ48f8deGLFR0eQX/J028LN4 X1yAeIcbSnuVFD8WLQy9rvXMeqFqxADjG17P87qbLRs2zesAdHknB82QGdyy/DQfNWau 0diw== 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=dktycsZYpaOdKAkdRe+fCc4ZFS0tJIbcxiudmTJ4Gnb8q4Qx2HrVqVAkj9zO6d1To1 iSKpj6mqQKuabMHojroHMGVMTVYK6eFSK/SMNiIlbfQbNt/xuvHZDkzHPZDhx/JdeOq0 BGNCiK+/8+tH4Vve4YjLR+KhRsKPuTh6gIA4pn/kJmqLHTgBlFh3sn2+gBclW5942Dnv fvEknCAfxBXM2ycIjWvQ1cus0ZMe+uU3cIqfU+SqW8voI6C1LndIoElD8rLAy40ujlIL GA+FwRzInutEaza8/nyf+Y6w5oVDIGgrKh8mmyZHXrgtWrsmxegI1wBOeTulW+IhP1/y +9Bg== X-Gm-Message-State: AOJu0Yya3neGzvqAwUEAyGgbry01i+vxFUTU1Cb6JYDh/hTeW9LKJSfE KeH8AfNCGLYgqH4rz6a/9LTgcmCfa+BzQkVQ9OYum/XVh3cOEvWm 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 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: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68687 Cc: emacs-orgmode@gnu.org 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: -1.0 (-) 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 ZWNhdGVkIGJ5IHJmYzY2NDggZm9yIE9yZyBtb2RlIG1lZGlhIHR5cGUuCiogbGlzcC9uZXQv bWFpbGNhcC5lbCAobWFpbGNhcC1taW1lLWV4dGVuc2lvbnMpOgoqIGxpc3AvZ251cy9tbS11 dS5lbCAobW0tdXUtb3JnLXNyYy1jb2RlLWJsb2NrLWV4dHJhY3QpOiBSZXBsYWNlCnRleHQv eC1vcmcgYnkgdGV4dC9vcmcuCiogbGlzcC9nbnVzL21tLWRlY29kZS5lbCAobW0taW5saW5l LW1lZGlhLXRlc3RzLCBtbS1hdXRvbWF0aWMtZGlzcGxheSk6CkFsbG93IHRleHQvb3JnIGlu IGFkZGl0aW9uIHRvIHRleHQveC1vcmcuCgpNYWtlIG1lZGlhIHR5cGUgZGVmaW5lZCBmb3Ig T3JnIG1vZGUgY29uc2lzdGVudCB3aXRoCjxodHRwczovL2dpdGxhYi5mcmVlZGVza3RvcC5v cmcveGRnL3NoYXJlZC1taW1lLWluZm8+CgpTZWUgZW1hY3Mtb3JnbW9kZTogT3JnIG1vZGUg TUlNRSB0eXBlLiBTdW4sIDIxIEphbiAyMDI0IDIwOjU2OjE1ICswNzAwLgpodHRwczovL2xp c3Qub3JnbW9kZS5vcmcvNmQ5NGZmZjQtNGQzMC00MTIxLWJmZDEtZjI2N2NiNWI2MzdjQGdt YWlsLmNvbQotLS0KIGxpc3AvZ251cy9tbS1kZWNvZGUuZWwgfCAyICsrCiBsaXNwL2dudXMv bW0tdXUuZWwgICAgIHwgMiArLQogbGlzcC9uZXQvbWFpbGNhcC5lbCAgICB8IDMgKystCiAz IGZpbGVzIGNoYW5nZWQsIDUgaW5zZXJ0aW9ucygrKSwgMiBkZWxldGlvbnMoLSkKCmRpZmYg LS1naXQgYS9saXNwL2dudXMvbW0tZGVjb2RlLmVsIGIvbGlzcC9nbnVzL21tLWRlY29kZS5l bAppbmRleCBmOTE3NTVlOTY3Yi4uODA4NmM5N2ZlNTUgMTAwNjQ0Ci0tLSBhL2xpc3AvZ251 cy9tbS1kZWNvZGUuZWwKKysrIGIvbGlzcC9nbnVzL21tLWRlY29kZS5lbApAQCAtMjQ2LDYg KzI0Niw3IEBAIChkZWZjdXN0b20gbW0taW5saW5lLW1lZGlhLXRlc3RzCiAgICAgKCJ0ZXh0 L3gtc2giIG1tLWRpc3BsYXktc2hlbGwtc2NyaXB0LWlubGluZSBpZGVudGl0eSkKICAgICAo ImFwcGxpY2F0aW9uL2phdmFzY3JpcHQiIG1tLWRpc3BsYXktamF2YXNjcmlwdC1pbmxpbmUg aWRlbnRpdHkpCiAgICAgKCJ0ZXh0L2RucyIgbW0tZGlzcGxheS1kbnMtaW5saW5lIGlkZW50 aXR5KQorICAgICgidGV4dC9vcmciIG1tLWRpc3BsYXktb3JnLWlubGluZSBpZGVudGl0eSkK ICAgICAoInRleHQveC1vcmciIG1tLWRpc3BsYXktb3JnLWlubGluZSBpZGVudGl0eSkKICAg ICAoInRleHQvaHRtbCIKICAgICAgbW0taW5saW5lLXRleHQtaHRtbApAQCAtMzM2LDYgKzMz Nyw3IEBAIChkZWZjdXN0b20gbW0tYXV0b21hdGljLWRpc3BsYXkKICAgICAiYXBwbGljYXRp b24vcGtjczctbWltZSIKICAgICA7OyBNdXR0IHN0aWxsIHVzZXMgdGhpcyBldmVuIHRob3Vn aCBpdCBoYXMgYWxyZWFkeSBiZWVuIHdpdGhkcmF3bi4KICAgICAiYXBwbGljYXRpb24vcGdw XFwnIgorICAgICJ0ZXh0L29yZyIKICAgICAgInRleHQveC1vcmciKQogICAiQSBsaXN0IG9m IE1JTUUgdHlwZXMgdG8gYmUgZGlzcGxheWVkIGF1dG9tYXRpY2FsbHkuIgogICA6dHlwZSAn KHJlcGVhdCByZWdleHApCmRpZmYgLS1naXQgYS9saXNwL2dudXMvbW0tdXUuZWwgYi9saXNw L2dudXMvbW0tdXUuZWwKaW5kZXggM2M3ZTNjYmRmMWEuLmIxMGRhMGMxNDNhIDEwMDY0NAot LS0gYS9saXNwL2dudXMvbW0tdXUuZWwKKysrIGIvbGlzcC9nbnVzL21tLXV1LmVsCkBAIC0z OTQsNyArMzk0LDcgQEAgKGRlZnVuIG1tLXV1LWVtYWNzLXNvdXJjZXMtZXh0cmFjdCAoKQog CiAoZGVmdW4gbW0tdXUtb3JnLXNyYy1jb2RlLWJsb2NrLWV4dHJhY3QgKCkKICAgKG1tLW1h a2UtaGFuZGxlIChtbS11dS1jb3B5LXRvLWJ1ZmZlciBzdGFydC1wb2ludCBlbmQtcG9pbnQp Ci0JCSAgJygidGV4dC94LW9yZyIgKGNoYXJzZXQgLiBnbnVzLWRlY29kZWQpKSkpCisJCSAg JygidGV4dC9vcmciIChjaGFyc2V0IC4gZ251cy1kZWNvZGVkKSkpKQogCiAoZGVmdmFyIGdu dXMtbmV3c2dyb3VwLW5hbWUpCiAKZGlmZiAtLWdpdCBhL2xpc3AvbmV0L21haWxjYXAuZWwg Yi9saXNwL25ldC9tYWlsY2FwLmVsCmluZGV4IDVmZjc1ZGViNGU2Li45MDAwOTk0MzNjNCAx MDA2NDQKLS0tIGEvbGlzcC9uZXQvbWFpbGNhcC5lbAorKysgYi9saXNwL25ldC9tYWlsY2Fw LmVsCkBAIC05ODksNyArOTg5LDggQEAgKGRlZnZhciBtYWlsY2FwLW1pbWUtZXh0ZW5zaW9u cwogICAgICgiLmpwZSIgICAuICJpbWFnZS9qcGVnIikKICAgICAoIi5qcGVnIiAgLiAiaW1h Z2UvanBlZyIpCiAgICAgKCIud2VicCIgIC4gImltYWdlL3dlYnAiKQotICAgICgiLm9yZyIg ICAuICJ0ZXh0L3gtb3JnIikpCisgICAgOzsgTWF5IGJlIG92ZXJyaWRkZW4gYnkgYXBwbGlj YXRpb24vdm5kLmxvdHVzLW9yZ2FuaXplciBpbiAvZXRjL21pbWUudHlwZXMuCisgICAgKCIu b3JnIiAgIC4gInRleHQvb3JnIikpCiAgICJBbiBhbGlzdCBvZiBmaWxlIGV4dGVuc2lvbnMg YW5kIGNvcnJlc3BvbmRpbmcgTUlNRSBjb250ZW50LXR5cGVzLgogVGhpcyBleGlzdHMgZm9y IHlvdSB0byBjdXN0b21pemUgdGhlIGluZm9ybWF0aW9uIGluIExpc3AuICBJdCBpcwogbWVy Z2VkIHdpdGggdmFsdWVzIGZyb20gbWFpbGNhcCBmaWxlcyBieSBgbWFpbGNhcC1wYXJzZS1t aW1ldHlwZXMnLiIpCi0tIAoyLjM5LjIKCg== --------------XvoEQ5YvCYu2UueGTfofSJJz--