From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AGGfCRUZtmZiUgAAqHPOHw:P1 (envelope-from ) for ; Fri, 09 Aug 2024 13:26:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id AGGfCRUZtmZiUgAAqHPOHw (envelope-from ) for ; Fri, 09 Aug 2024 15:26:45 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ushin.org header.s=key1 header.b=j3HX8wIl; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=ushin.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723210005; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=A0DamyoeDHBYuUMF5TOASGUq5CDHkqSpAesqAShnFBA=; b=LXI+dVi4/6UOWlOL3TKWShgwyQRHRh0VRDt4zBbHmZyGxUJ0vQzB127jmfWcWUxYSVKCqb nRzYKJvJVZRkRQNPVonFpj1A9ubDieQYOzRghYcxX29EiGhKtWRx/b4RzKg72erJCkLfO8 3elmaiipO6kcPN9kBnCFVknJxLZHkdxVzmlbHGfqu7xn5elwd/NrkbKLHsCWKWjAfvgL0f 27NrTeqz6TrrPO5Lti9JIuH3YAb/Rxdkht7keaUGGqQJLvPJbr+BQhDZsOlqmpqE+XqQQd lbXX3N865+IWlte3YhCVLbY1Q0AFiYkAHhyyz4aghEHYNESloIuvNW3eMDl6LA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ushin.org header.s=key1 header.b=j3HX8wIl; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=ushin.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723210005; a=rsa-sha256; cv=none; b=EY8wyJbrCOAKGvG4TwEeC0OPubsPVd2E51d4nxC3x34tYcLS5xmJ0SRUXZ1o9QCL80olQc giKtE71X7YwisLouAYUC/v+NxPKq8FMyMjfbnZSzYPiVChebY/cgpU1u47S1JmYjv8sJjI 6ghCfV8VaEsW0R079ZfDslCgkJAMOVOwH/Qvb85+pQH/OQV2oghLaWJC1IdlVJzSKl73F7 DCD+Wohi6pc0iDZYe1rC78luIiPRVufb2XpTIdlWf7piAwEJ/8A5060mEHKSv6tR6XiIFk zGkdx5U8Af2zy2hR2E7SsAZlhBsGLb5ZnZlkKA+i8FvoxhkrxHHUFstbE/1kNQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0817D11247 for ; Fri, 9 Aug 2024 15:26:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scPCQ-0007QU-HU; Fri, 09 Aug 2024 08:58:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scPCM-0007Cl-Hu for emacs-orgmode@gnu.org; Fri, 09 Aug 2024 08:58:26 -0400 Received: from out-188.mta1.migadu.com ([2001:41d0:203:375::bc]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scPCI-0005O1-BZ for emacs-orgmode@gnu.org; Fri, 09 Aug 2024 08:58:26 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ushin.org; s=key1; t=1723208266; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=A0DamyoeDHBYuUMF5TOASGUq5CDHkqSpAesqAShnFBA=; b=j3HX8wIllsCrPL0pYMsoDtdji1aK4MLeWM6UE43wwhbFf8NBot8d+T8j+dgBhQiF74WNQx 54oeCEWSCK/zS7rzB8OPUcRHHlSRAEtCyGH1li+8kjBDL8rLM41QQsallX4R1ejffhKJOR itBNM++zyiU0NB+AzXalWd4CvBmYqUtBdP1mKmbnFuBKctL3xb207a7HzZ8BgZiWP2UWe8 FTglfOulVCup9o+FHHeHqqQood9O0F3M2mtL14IZ7kaBhbpE2jU1Q+YvhT80/Zmdele2/u a+3996ITNWxqpFyvN0QMUFB6FTFgXvxMCzjalEaoZNgg6iVLthxWCJYEBIT3eQ== From: Joseph Turner To: Ihor Radchenko Cc: emacs-orgmode@gnu.org, manikulin@gmail.com Subject: Re: Adding text/org MIME type to jshttp/mime-db In-Reply-To: <87o766kebj.fsf@localhost> (Ihor Radchenko's message of "Mon, 05 Aug 2024 18:35:44 +0000") References: <87wml0f265.fsf@ushin.org> <20dcde53-c4aa-4db6-9143-9e6ea6a62215@gmail.com> <875xsh5wze.fsf@ushin.org> <87o766kebj.fsf@localhost> Date: Fri, 09 Aug 2024 05:57:42 -0700 Message-ID: <875xs9am61.fsf@ushin.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2001:41d0:203:375::bc; envelope-from=joseph@ushin.org; helo=out-188.mta1.migadu.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 0817D11247 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.87 X-Spam-Score: -9.87 X-TUID: gWfTCG7HTxaS --=-=-= Content-Type: text/plain Ihor Radchenko writes: > Joseph Turner writes: > >>> I think, text/org may be added as well (without removing of >>> text/x-org). >> >> Shall we consider this this after we find a way for these low-preference >> mappings to be useful? > > If you mean "negotiate... to override "applicaion/vnd.lotus-organizer" > with "text/org"", I have no objections. > >>> Perhaps a worg page may be created to clarify current state of media >>> type for org files. The question is what is the appropriate directory. >> >> I agree that it would be good to track this information in one place so >> we don't repeat ourselves ;) > > We can put such a page alongside /org-syntax.org, maybe even linked from > there. Feel free to create such a page. Would the following patch be appropriate? Thanks! Joseph --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-org-media-type.org-New-file-Describe-state-of-NodeJS.patch >From c898ba723faeb67929f52728c67e2b8858f99738 Mon Sep 17 00:00:00 2001 From: Joseph Turner Date: Fri, 9 Aug 2024 05:55:52 -0700 Subject: [PATCH] org-media-type.org: New file; Describe state of NodeJS MIME database --- org-media-type.org | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 org-media-type.org diff --git a/org-media-type.org b/org-media-type.org new file mode 100644 index 00000000..f5d69b7c --- /dev/null +++ b/org-media-type.org @@ -0,0 +1,37 @@ +#+title: Org Media Type +#+author: Joseph Turner +#+options: toc:t ':t author:nil +#+language: en +#+category: worg +#+bind: sentence-end-double-space t +#+html_link_up: index.html +#+html_link_home: https://orgmode.org/worg/ + +#+begin_comment +This file is released by its authors and contributors under the GNU +Free Documentation license v1.3 or later, code examples are released +under the GNU General Public License v3 or later. +#+end_comment + +* Introduction + +This page tracks information about the ~.org~ extension media type. + +Based on [[https://yhetil.org/orgmode/6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com/][this thread on the Org mode mailing list]], the consensus is +that the ~.org~ file extension should map to the ~text/org~ MIME type. + +Until the [[file:org-syntax.org][Org syntax spec]] is complete and a proposal submitted to and +approved by IANA, we can ask downstream MIME libraries to override +~applicaion/vnd.lotus-organizer~ with ~text/org~. + +* Downstream MIME Libraries + +** jshttp/mime-db - NodeJS + +[[https://github.com/jshttp/mime-db][jshttp/mime-db]] is the de facto standard MIME database for NodeJS. +[[https://github.com/jshttp/mime-db/commit/5797174e5434a8d2978d9fdc13ec6a47ba20a02f][This commit]] adds a mapping from ~.org~ to ~text/x-org~, but the two +popular NodeJS utilities for getting a MIME type from a file +extension, [[https://github.com/jshttp/mime-types][jshttp/mime-types]] and [[https://github.com/broofa/mime][broofa/mime]], return +~applicaion/vnd.lotus-organizer~. Both libraries return only the +highest preference media type, and IANA-sourced media types are +preferred over other types. -- 2.41.0 --=-=-=--