From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sAkmL68irWViQgEA62LTzQ:P1 (envelope-from ) for ; Sun, 21 Jan 2024 14:57:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sAkmL68irWViQgEA62LTzQ (envelope-from ) for ; Sun, 21 Jan 2024 14:57:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=nVD9aY3T; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705845423; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DBR8WqO+E723ZwV5I72MVp9K4O1O0zFIrNo02xqbl1A=; b=Z9IQDBYXfkoo+kx70j3p4qEtRLGGfYmLMrhuAAO5v+W/ghI6vwvZRohXRj0fNEUhJwN9an kNmQSIDvRYIfo0J9wW3s7E/REcrEO9ipxyUVuMxkKVgqxOFdkMi8FjW9rtHj7DLWDTsJeT Dso2X+AbJ22F2JDb0J9vpgYRBHWIs7YRPUMR/tyT4TAGKWsiInzf2d3N1QT4am355h+AJe 6mJLrVcyWKIU90NbHU0Y4i5+KVsQUyTQeI/Db/fzH9h49EMarGpWCZYaP8QI/dc/u5yR4n cWsFEhU8a4U95H0dFgzz9Kt3dLBmzYPFKd+XV9wSiGo9pQoBz64Sx5qcKXjVzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=nVD9aY3T; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705845423; a=rsa-sha256; cv=none; b=ofodKf1MR/k9CqrJ6EduejuG/GOu7OOHSdhhMl2Y5cz/4HhMJmBkuRVOlGUQaOVIZNDn5g eU9YsZT/qWFqJthu70XObFVJD7iUXbC6H7j7tSxZPsJc6haZeD+Zw0TDkFX7u2m6ebUydA ki+KO87BQYrBcqEIYVZ4ipRrOmigl2vAoBNr0/t9Bs555dt50aPhViT5Jlx/rtaMoDKJ0w 5WDBUqLzWdJWJ9gLNomZsMcddI6wF1fzBwz16Qa1nqR+hePRNek+tf94zNZHA2ZS5sMog2 yoGnfvYXnAzk4dRsQbvnQXyftWrhvhXExzsj/9miBJR15s+RyMfXyAlxYYQoug== 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 785BA1194D for ; Sun, 21 Jan 2024 14:57:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRYJI-0005pc-IR; Sun, 21 Jan 2024 08:56:28 -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 1rRYJB-0005pF-Ve for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 08:56:22 -0500 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rRYJA-00064g-71 for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 08:56:21 -0500 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2cddf596321so23853951fa.0 for ; Sun, 21 Jan 2024 05:56:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705845377; x=1706450177; darn=gnu.org; h=content-transfer-encoding:mail-followup-to:content-language:to :subject:from:user-agent:mime-version:date:message-id:sender:from:to :cc:subject:date:message-id:reply-to; bh=DBR8WqO+E723ZwV5I72MVp9K4O1O0zFIrNo02xqbl1A=; b=nVD9aY3TIaNIdjYQnojrLfI81j5K7lR8l8h7m/z9Rn7cSsB4w4M01kHGvTI7eHf45w 7cBnHzakZVAmSLJHhmKxwIhhQBVrNqJQUFUOj6QWieNIbMrNaNINlu6jJqcmWiS7kK8q XhzQtckI5XL5YxFU3flzwOFxHM2yt6Oi7hQA3gR9872Br1G3ycd3TjrwMkx22FGYvfFq 105rllOR/HSbrl1w7+8DuTgMNbtPI6lHhWVooruZD3z5q+LaXIExiFdL8FJajRCFk3bX CcFpdUGEcSIef0lIRipKqMQntFZvF+y7Zi0l2GOoxrM5W9lILQiEcMsq9b5UCdSp4okO arJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705845377; x=1706450177; h=content-transfer-encoding:mail-followup-to:content-language:to :subject:from:user-agent:mime-version:date:message-id:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DBR8WqO+E723ZwV5I72MVp9K4O1O0zFIrNo02xqbl1A=; b=J2kv+gk8T5KhflKRn2stl3iJkr5wR6Y6d/8DNofEQ+SsKD0/5jH/Hu779r//8Dsse9 01cbU4+vbiZEWytdYMp2F/7WtZhwQnuPlDz4rXAfFlRqZ5mlYn8kWVKBf4aynJU7vUGm /tAPHEmaJj5JFdbx1jcEQksmUHJ8FiAZ+ujuAXDJ956UPjrP2EIYHdwJAgLDBhU520z4 HHKhi13u2ZMDasJFQvSzzQ0b/9sr3RqA6cca3okT3cQig202qqXj8tNevq5pDEPJ0zhv Q5VKVXymVo7x9QqcFjZ2epuPTiKyo+1VyY7qyqsUVMQpTzyreh0HwDjQzZXdvlvM6eCD yqZw== X-Gm-Message-State: AOJu0YycgSsHxm44figBXCexxOB/rZVlNPfQaksb160z1ekkBErmLfun 2DjU2HIn/9wX10D2nHjgHwMSMMMC7WpuwnseaUCuh7owvXYBvph6s4sk/5WR X-Google-Smtp-Source: AGHT+IEwp8MtEfaEjU+IpPStwNS5CbD3Uf+li+66GvqZa7PPJTVX7dyodPcHOuiGaBPZHj/USQfH5g== X-Received: by 2002:a2e:a4ad:0:b0:2cc:dbf3:d53d with SMTP id g13-20020a2ea4ad000000b002ccdbf3d53dmr1019563ljm.13.1705845377232; Sun, 21 Jan 2024 05:56:17 -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 p8-20020a2e93c8000000b002cd17747bd5sm3209896ljh.10.2024.01.21.05.56.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Jan 2024 05:56:16 -0800 (PST) Message-ID: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> Date: Sun, 21 Jan 2024 20:56:15 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Max Nikulin Subject: Org mode MIME type To: emacs-orgmode@gnu.org Content-Language: en-US, ru-RU Mail-Followup-To: emacs-orgmode@gnu.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=manikulin@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.34 X-Spam-Score: 2.34 X-Migadu-Queue-Id: 785BA1194D X-Migadu-Scanner: mx12.migadu.com X-TUID: mHZTHNXgQDfh Hi, I have been surprised when I got xdg-mime query filetype /tmp/test.org text/org for a following file cat /tmp/test.org * A section An example of Org mode file It is pleasant, however shouldn't it be "text/x-org", not just "text/org"? (I am against "application/*" variants since it is a text based format). 1. The MIME type has not registered in IANA, so the "x-" prefix should be preferable 2. It would be in line with emacs -Q -l mailcap --batch \ --eval '(prin1 (assoc ".org" mailcap-mime-extensions))' \ --eval '(terpri)' (".org" . "text/x-org") I have not found any discussion of the following commit that is a part of shared-mime-info 2.2 release: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/commit/4dd4fd5cb54d03cb73102c6f1f674675b5186e47 2021-05-27T20:27:31Z David Faure adding org-mode > > Org-mode file > > > I think, "type" should be "text/x-org" here, perhaps "text/org" alias may be added to this entry to not break workflow of those who already have text/org e.g. in mail messages. By the way, shouldn't description be "Org mode file" without a dash? See org-mode/doc/Documentation_Standards.org > - Prefer "Org mode" to "Org-mode" or "org-mode". This is simply > because it reflects an existing convention in [[info:emacs:Top][The Emacs Manual]] which > consistently documents mode names in this form - "Text mode", > "Outline mode", "Mail mode", etc. Actually it is more complicated: file --mime /tmp/test.org /tmp/test.org: text/plain; charset=us-ascii It is expected, since "file" relies solely on file signatures (magic bytes) and text files have no specific ones. A more perplexing result is emacs -Q -l mailcap --batch \ --eval '(prin1 (mailcap-file-name-to-mime-type "/tmp/test.org"))' \ --eval '(terpri)' "application/vnd.lotus-organizer" in agreement with run-mailcap that reads /etc/mime.types see --norun /tmp/test.org Error: no "view" mailcap rules found for type "application/vnd.lotus-organizer" I am unsure if it is possible to convince maintainers of https://salsa.debian.org/debian/media-types and https://pagure.io/mailcap to change mapping of .org originating from IANA, but certainly it would be easier for text/x-org than for text/org. IBM seized support of Lotus Organizer many years ago and only early versions around 1992 used .org suffix, later ones used or2...or6 extensions. In the case of Emacs text/org was replaced by text/x-org: https://list.orgmode.org/87aaiufaoj.fsf@gmail.com/T/#u Subject: Re: Adding a new text/org mime type Date: Fri, 21 Jan 2011 18:06:52 +0100 From: "Štěpán Němec" Should we ask maintainers of shared-mime-info to update the Org mode entry?