From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yMZcMnXdWmN9MwEAbAwnHQ (envelope-from ) for ; Thu, 27 Oct 2022 21:35:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sL1zMnXdWmM6ZAAA9RJhRA (envelope-from ) for ; Thu, 27 Oct 2022 21:35:17 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by aspmx1.migadu.com (Postfix) with ESMTP id 9968DF4C2 for ; Thu, 27 Oct 2022 21:35:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo8PX-000381-2z; Thu, 27 Oct 2022 15:19:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo8P8-0002zr-RT; Thu, 27 Oct 2022 15:19:02 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo8P4-0001ZT-QQ; Thu, 27 Oct 2022 15:19:02 -0400 Received: from localhost ([::ffff:102.85.119.94]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000081D8D.00000000635AD97E.000042B4; Thu, 27 Oct 2022 12:18:21 -0700 Date: Thu, 27 Oct 2022 20:41:10 +0300 From: Jean Louis To: "Dr. Arne Babenhauserheide" Cc: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Subject: Re: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly Message-ID: Mail-Followup-To: "Dr. Arne Babenhauserheide" , bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org References: <86bkq0qf8p.fsf@protected.rcdrun.com> <87wn8lpl2p.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <87wn8lpl2p.fsf@web.de> User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666899317; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=hB8x7g6PZWSo5itlkuz59hTPLVOLjdPpiknZwC80Kyo=; b=kMy5JEaHmzzybZMofz/luTaXsG5n+3L6MCaqZMa7gw8CdP5ZwwzJO+DHjv1CIjJxndmGJ4 8VRdDacTfT8PUvf+JxhS3foneCnnduT9dyH4TZwPqUZIoUBAqa72IQrmh9k/jyZErhohcX taZITAmo62Mhxzhl5mAJErwF5qJCH60XePO+Y67tnt2ffom+mv3YL5QlUJGenhqpT7Q7tt Dzb4yKDAvnxt4EnrRyz2vCeAd+kHC/cydN88PO+cgzz9N0M4HxI5Y7Y/h+956vwXoW4zVV qROmEArC47ZkHIw1itaF7CYfo5VJfeJMne2tUHTNkmXaXRwjB8MSbxFZnBJVmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666899317; a=rsa-sha256; cv=none; b=cgX0RtqY1V+NjdQ4kKMOA/pCLdmsBjflJWE3HAg0VFR6mgqVLXqMZe6+IkETzJEbTLv59F Wg4mLpxY4a6euwyyJuB2fW7si9AvURjFU+/tlttOTdcmtTn2wG4x4/VhP10/DYVvqMkVup 8LPX6Jor1wuKcR5yRuMDQifXZjV4HxqFLZRZkL1eKQYAc8L4FsnHBdSGu58SZXLeEC1msV YMVPqEyGnMaXEeeQs0F1tkd+MQvGVoJh5PempWL0XeJPHmIQsz/eFxnjRJpnEuBcJqLvBz FwZ7vdlaszH3q95MIQICpZASIDNRfkG9NrWuWGm7+KK4IQQL95B/uoFs+ZHcZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Spam-Score: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Queue-Id: 9968DF4C2 X-Spam-Score: -0.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7y+6I1yILqdo * Dr. Arne Babenhauserheide [2022-10-27 14:23]: > > Jean Louis writes: > > > * Jean Louis [2022-10-25 15:14]: > >> > >> This wish request is related to Emacs EWW and Org mode. > >> > >> Please make EWW recognize Org file when served by WWW server. Currently > >> it does not recognize the MIME type text/x-org and opens the file as > >> text, it does not invoke the org mode. In my opinion, it should. > > > > Now is clear that main problem here is that Org advertises somewhere > > to be "text" in MIME context, while it is not, it is by default > > "application" and thus unsafe, see: > > > > Application Media Types > > https://datatracker.ietf.org/doc/html/rfc6838#section-4.2.5 > > > > and understand difference to: > > > > Text Media Types > > https://datatracker.ietf.org/doc/html/rfc6838#section-4.2.1 > > > > Thus I suggest that Org changes its MIME type and stop falsely > > claiming to be "text" in MIME context, but that content type: > > "application/x-org" become adopted, as that way it will become clear > > that it is unsafe opening Org as falsely claimed "plain" text. > > You are mixing up text/plain and text/*. Orgmode is clearly text/* but > not text/plain. From your link: How do I mix it? > Beyond plain text, there are many formats for representing what might > be known as "rich text". An interesting characteristic of many such > representations is that they are to some extent readable even without > the software that interprets them. It is useful to distinguish them, > at the highest level, from such unreadable data as images, audio, or > text represented in an unreadable form. In the absence of > appropriate interpretation software, it is reasonable to present > subtypes of "text" to the user, while it is not reasonable to do so > with most non-textual data. Such formatted textual data can be > represented using subtypes of "text". Org is not just rich text for reason as explained here: https://datatracker.ietf.org/doc/html/rfc6838#section-4.2.5 so I suggest reading it. Examples of content types for some "rich" text formats: .odt OpenDocument text document application/vnd.oasis.opendocument.text .rtf Rich Text Format (RTF) application/rtf .xhtml XHTML application/xhtml+xml xml XML application/xml is recommended as of RFC 7303 (section 4.1), but text/xml is still used sometimes. You can assign a specific MIME type to a file with .xml extension depending on how its contents are meant to be interpreted. For instance, an Atom feed is application/atom+xml, but application/xml serves as a valid default. Review definition of "application/*" type. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/