From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GGsML1e5rGY3hAAAe85BDQ:P1 (envelope-from ) for ; Fri, 02 Aug 2024 10:47:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GGsML1e5rGY3hAAAe85BDQ (envelope-from ) for ; Fri, 02 Aug 2024 12:47:51 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; none 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 A885B225DA for ; Fri, 2 Aug 2024 12:47:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZpo9-0001iy-Lq; Fri, 02 Aug 2024 06:46:49 -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 1sZpo5-0001ie-VX for emacs-orgmode@gnu.org; Fri, 02 Aug 2024 06:46:46 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sZpo3-0003Bj-Et for emacs-orgmode@gnu.org; Fri, 02 Aug 2024 06:46:45 -0400 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-52efe4c7c16so11652381e87.0 for ; Fri, 02 Aug 2024 03:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722595601; x=1723200401; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=80aY4fdiF2xX5Pt9SHtcPcEvgMqe4eRLqvOqmUrEW8U=; b=SRuj1JTH9wF+ZS/msxdQjTa9ni0AvNOHUwxzgxw1LtM43W8O+LJEYrIxFYeTYNDpu6 JtGk9gUKlnumfaha2zlPgEIcosCgRIQYiy3hCfCXkXJPvFMOlWYrbA/QT7B+uvO6j26S We9mt0qGX02roc9eug6cPVcMyW8e6Xi2EmPiRULbZQ1OpXUJ/XdPq/tJPBNhkjmBSIFt boma0mLRdAkofBML/iJymCmpBFgDoiVPGA7An3rozwkZwoA4AiBG4OcEfmYXmE8X4G0G 8dGH/WfMwwhXyqNWZ4vS/1HnaTHdy1EpcUBPo5ABW882Pf43Gx8xfokqTJSx7fEi4DeV DnuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722595601; x=1723200401; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=80aY4fdiF2xX5Pt9SHtcPcEvgMqe4eRLqvOqmUrEW8U=; b=oGPPhq0K1SWyrybu5eJziVDRo7zssTWj7cOGkpwvqpIVpomWLrbejmZJJSokGGuv4C gzjCYvaNriTc14ClqVH50c33j9TpCMVJLRMbbeYJG70/FNrlwUOpUEo07L3b3drqceA1 wLr7/No+slM2fSrv8gqeHALWsDmw0orop9fiudWvqhJl2L2kbZrIuYr+SWBbL/fUt2u7 dBuPd4Q1F/ZN9nUMgfbt3Yc/oQ9a4yPa0ugQMUsEJ4Z1Sr8fMsNX55jcQHiGuguB2/ph S8ZtGNNeBphtLFJmhRxbRV3EGnc2kF9TJJRPrkLmvE033e6NQLt68RHDybCRpMBuSeiK 2Gzw== X-Forwarded-Encrypted: i=1; AJvYcCXGoo1T6MS1KWY7ztLQl6TKY+JI5oy4w0idLJUwNKwoicvERjWDUIkLQZd9RF9puVYapr9NNAp8zvhS7Bh4hpgR5S7D37o= X-Gm-Message-State: AOJu0YwujwlhKtlNaVLhR4OoKTQEymPtsvvXojTHOadz4+RSreP1U6p+ UXI3UzzhqV+5411QM/rl4+FMKjqbjlm4pg7kB6BftzH5RrifGg5kvNpAgw== X-Google-Smtp-Source: AGHT+IEvQbDFYzF80qttoI1Le/aU8A5+tMbnoFfkRGz7F6TZyEPFkU/pAJ3mCMboxH7Cc14eJb83vA== X-Received: by 2002:a05:6512:b99:b0:52e:fa35:15a4 with SMTP id 2adb3069b0e04-530bb39b792mr1796053e87.33.1722595600402; Fri, 02 Aug 2024 03:46:40 -0700 (PDT) Received: from [192.168.0.102] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-530bba11074sm195895e87.87.2024.08.02.03.46.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Aug 2024 03:46:40 -0700 (PDT) Message-ID: Date: Fri, 2 Aug 2024 17:46:38 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Adding text/org MIME type to jshttp/mime-db To: Joseph Turner , emacs-orgmode@gnu.org References: <87wml0f265.fsf@ushin.org> Content-Language: en-US, ru-RU From: Max Nikulin Mail-Followup-To: Joseph Turner , emacs-orgmode@gnu.org In-Reply-To: <87wml0f265.fsf@ushin.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=manikulin@gmail.com; helo=mail-lf1-x135.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 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-Spam-Score: -4.00 X-Migadu-Queue-Id: A885B225DA X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -4.00 X-TUID: m5a8X/dO5hcm On 02/08/2024 02:55, Joseph Turner wrote: > Support for "text/org" in would let > the Agregore browser () render Org files. > Then hyperdrive.el users could share Org files to be viewed in Agregore. > > John Kitchin opened a PR back in 2017, which was rejected: > > https://github.com/jshttp/mime-db/pull/82 [...] >> I would suggest opening a new PR. [...] > I'd like to open a new PR. Would you elaborate on "de facto mimetype"? Nothing more than my opinion: I think, if you are going to convince somebody outside of Org community then you should mention that the format is supported by GitHub and GitLab. Org files are rendered using org-ruby gem. Only a part of features is available, but still useful. shared-mime-info used by Linux desktop applications has .org text/org association: (though text/x-org alias and -*- mode: org -*- magic are missed). Thunderbird sends .org attachments as text/org without explicit configuration. Till finalizing of https://orgmode.org/worg/org-syntax.html and writing spec (RFC) there is no point to send a request to IANA. Emacs will continue to use text/x-org till somebody manages to convince developers that transition to text/org does not break backward compatibility Actually Emacs will continue to use application/vnd.lotus-organizer in some cases since to /etc/mime.types has higher priority. I am not familiar with Agregore, but my opinion that media type associations should be configurable in applications and either shared-mime-info or /etc/mime.types should has higher priority than any built-in mapping, perhaps besides some exceptions for media types directly related to the application.