From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 8PbKB5/qsmWH2wAAe85BDQ:P1 (envelope-from ) for ; Fri, 26 Jan 2024 00:11:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 8PbKB5/qsmWH2wAAe85BDQ (envelope-from ) for ; Fri, 26 Jan 2024 00:11:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EXuoapmW; dmarc=pass (policy=none) header.from=gmail.com; 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=1706224287; 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=0zUSkeZjd/i19VwiSoMr8yNdE/6heU9C42DngNtMnz8=; b=PeqZdfhbcoErphOg9PYp7isA8a4U6wOi3SeWRk18QZOcuxHaxaXcFijNFITeENmQT/5nBb Rh+qoD5hSSF5SBdGdom0HSm3zWaNxRDIKjAFix/HwCtNKcPEk7niel8N+ZerynoDy2jcs6 ilXW+3K13HP4+C4zJx5kitK+2vS+7tO+DgwDY+uUM6Q+Uie01iGJfeENw49aurjLM/35xV /JRJsDZh/MVv/lpdCw35WjOXb/EiMrtzBZBvd3cgTlcu6GWBkblKLfl342HPty8oDphIv/ NzRjltzYP6piDsgxzuYM3AKgBtzJKi6031DKyZGZOfRMQUSoxTirUS6bTBCikg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EXuoapmW; dmarc=pass (policy=none) header.from=gmail.com; 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=1706224287; a=rsa-sha256; cv=none; b=ZEO1aV3C31TrTHLtpXF8hvsnl0adgiNFgzNBzb2Kc4eG2WJuOaJzyn2rCyRPRiLMLWIy3r y7BmZIJXGXFTXXv+WOR5kPmHSXJ23Co2CwV+RGYYzEloS0Oino5pDxcggckXi5TtZ0aDuM AAwRvm/DtZKMlxnmiGKUfKBpu9b1JSzqcpMrm/mRXFrSPJvLDeWiByk9XXwO9atjRIoY8t VwZarhxE3kH8Vt04U793f8pQcCO67ssPBX14hRoWvCDsDZstdJtp9g2/E0XQ2XdnOGbB7n iJl/yYJ5QBPadLegp4eTLbTLcNEI6W7tHdQ+AC9FDpqNbhtAhvMbLwKXda5yGQ== 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 E59B6340A3 for ; Fri, 26 Jan 2024 00:11:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rT8ri-0008Ng-9w; Thu, 25 Jan 2024 18:10:34 -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 1rT8rg-0008NY-Bj for emacs-orgmode@gnu.org; Thu, 25 Jan 2024 18:10:32 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rT8re-0005M4-DY for emacs-orgmode@gnu.org; Thu, 25 Jan 2024 18:10:32 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40e5afc18f5so78455395e9.3 for ; Thu, 25 Jan 2024 15:10:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706224228; x=1706829028; darn=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=EXuoapmWoeUJ5xBfYbVvb4ZM84ksGoF+8qoiFEgLorVhgV88nCq1ymjckAsBEK0K8T bPOAR9IMBSz2x40ybL9G7v32eSDY/XPXTKLB1VBIiE7+8gp12a0kQx6h/rpDHj3aPsWd v2AoM4DvsFrpHsbuZs93KCi9kj4OBLAFzOsRsUWSYVtg2iWlZYcIqauU3zRu0oirMmTn mDfTZk1vFadif1Bnq1Mx4YJcX+NOhpZZQowDjt4rWXmliCpp105mxg2ucoyxFggA4qH0 +qF2/m3g46uyu4GQYUjMEmkbpSYT615TcbN6mqhY0tjd8n4F1nI+xa4irbLdnucWHA7n wYWA== 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=MC57ODJgWVyb4d48cuyJcSyPiQbWVI6Yi1M/jDdeWVLDiABPy8yv5DMrk3uFijxN13 eMH/P/IkudFwSpQNuJw15BKQNoqsWcUc1LAaXM12bBtqVQrlrT7KB9iULFfbu3Jx4s6d VoOYooaDcvcvI9WKewJX2jyx2P3MhWFUWqjxJsj1RQtra/Wbyi2DspPffnW6LdUWbbt1 pJfTs+B7ZkFpOm22UVMN1WVfoJCKgAA5HkphTr5QCvbuHjseMTW5xbkl3oZkHcLPO2xK R/2Mtw3YzuZFiOLsutKuE0uVehleV4d2OkCvbMJUhTb5Yj7o/8Nr/661QoBiFBRKFUbC MoPA== X-Gm-Message-State: AOJu0Yx/HPVHbYOZOfpkfXNG5f3hBYpOvw6UC69QuR05yZbolFdB8Td6 EqSfbm8INRDUFtST/9HtPrwAQxrvjL4IukDqMkUBktMIcpmkICx8AB1cnWQYMEOjCsBdfMkWMGw ObAQryzZQp4QpdmF+gm3hGi2mVcE= 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 Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=stefankangas@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.98 X-Spam-Score: -9.98 X-Migadu-Queue-Id: E59B6340A3 X-Migadu-Scanner: mx12.migadu.com X-TUID: XdbQ01wlF2BY 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