From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QBvzJMl1umXlAgAA62LTzQ:P1 (envelope-from ) for ; Wed, 31 Jan 2024 17:31:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QBvzJMl1umXlAgAA62LTzQ (envelope-from ) for ; Wed, 31 Jan 2024 17:31:05 +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=H6R9zBNP; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706718665; 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:dkim-signature; bh=ykGWJHV3/Q7GnOJJNj+IExjHzB9152lG5mutN958/g8=; b=ETKrvwdNpQY5noleMm3HsFW03rFXWgPU2XoP2QmQIEh78UxguYK+JGEtNuAyZhvJfgBgQE Ifli6QHQXH4IKpwxgAm4Xb7q6XXQ9utl6V/kZfUV0z1f20EgxHTPpJ0L7tfKph6oK+v4Ys HHQppYKgNhGnXQoiwMyYQRSCqyjUFXBReN7B4AUShOUty17wV1jUA/1wABEwqnTtHhQin+ 2YF5eedQNAbZN7Gi58Nlo1ryu9pl5zCPKP+SIhDL/GhgAWw69BBG+koWUA9AufoWPtoKNc GXR7KP6sBZoiSXmoyzogIWFbAeJCepBb43Nx1tUoYuaAeHsCs/rO5KEYlmAwqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=H6R9zBNP; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706718665; a=rsa-sha256; cv=none; b=X4tjmt7GmUbYlFXr+cgMAFEDibysRU6snbCOsJshsn33KXsFSEqQHZMPd+wYtey++JpkF0 7iCn6ebYv6pGk2WWHG11Lpny72Vzojl+AZ6iaVhXX4cOLWDanouE5j1wGiNlRev7cODqsr ncyMf4Hj+krYsNnHNaPHx7hkeFyt/iy15RFLYBGfeviRTmyFgbyJozJEtqMXyAKC1fxSMG qcpPV+jeLxRTe5lQqU5hczTW20mzWyLGSUN+HLe/GXGWdZuUn/s8tmWmMYBmamziErSl/Q IrRXRnnShjQ0MqoXpwYVHzYEjCS9K7cZXkVNf+Mk7z5g0VgHDfOpWG1UNhr6mw== 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 80E5266CA2 for ; Wed, 31 Jan 2024 17:31:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVDUF-0004bq-SK; Wed, 31 Jan 2024 11:30:55 -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 1rVDUE-0004bH-Rt for emacs-orgmode@gnu.org; Wed, 31 Jan 2024 11:30:54 -0500 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVDU9-0000xj-TQ; Wed, 31 Jan 2024 11:30:54 -0500 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-51117bfd452so4183841e87.3; Wed, 31 Jan 2024 08:30:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706718646; x=1707323446; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=ykGWJHV3/Q7GnOJJNj+IExjHzB9152lG5mutN958/g8=; b=H6R9zBNPd6nuUHIq4llk+A/HgfGTQIj2ljz1JkoVhc83bX7nDs3rN1ZV/n0/LFx3OM IgKDbaGdOSMcg9UhEPj5OFa3JTJEfEMLPAlzJNgfdeSf0Vg8jUMlJrheIWOQ59d/kMYc QGzTGF2z7ruYDxYH22nJ5eh/W7DojNW25l4XaoPSZ/bLiSgEaffTEJrPrvs2uu+B+RjB dmwAzvzu74dMkgHaHunqNp3/x519J8FTFnzIEU66lEYZu3rZZqOtMZ1WC8b2Lv17zCyD fyKrP4Fy2Dj/TKUOgcFgwLsltAuZR8qgaARhz93E3f5GXCtBiUIHjpoOWmvzHzAxsOPt Xo3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706718646; x=1707323446; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ykGWJHV3/Q7GnOJJNj+IExjHzB9152lG5mutN958/g8=; b=RR6j3V2ryPYUO0l5K/IliBf7EmTt8c7Fqm6+5obionXqEoE4lXKVr8BUpe0HAdX03u Jc2YoBkaww8TGJSlLOBSHkNRqiyEjyaIVX4Kcuq+bPUBQciWIaEDSGrsQu8t3E+v918D J001IpdOZ2TwpsnqVrco2Q31I1UzgWj51xUI5OIbLiPi3a07cBg9s33cUEmkxr6+6atJ Hv/9oh097Ies/pTw9u2ODVXOPiw71fQqaZv85EkjODi/StTmfsSa4I7st6ijBRBTtIS6 jvk0Wmmfr+WfjKgA85Ln4KCWULWO5cGRbqReZmI1ZeABFGho8Kh1kjcqXdO6+Tia7BhO ETqA== X-Gm-Message-State: AOJu0YzcQRLyjOUiCqWmlcsCid21iLJoRHko3XW2NKxjlMLg54xYl/pV 3lg9WvuF6ljzh74AMbyygCtvyeNvBHsbV6So6JTm2+RyKyJecIu6+O7mU5p8Bk8= X-Google-Smtp-Source: AGHT+IEWNnSGm987fp+XPnribZCkZDPQoszEPJGQOnkMcW7zH+b/HtJ08PeZwFfq0wGVJ7vxUtWp0g== X-Received: by 2002:a05:6512:2016:b0:511:2a02:3337 with SMTP id a22-20020a056512201600b005112a023337mr545243lfb.47.1706718646154; Wed, 31 Jan 2024 08:30:46 -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 d19-20020ac24c93000000b0051025dcd3e0sm1873348lfl.69.2024.01.31.08.30.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Jan 2024 08:30:45 -0800 (PST) Message-ID: Date: Wed, 31 Jan 2024 23:30:44 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#68687: [PATCH] Use text/org media type Content-Language: en-US, ru-RU To: Eli Zaretskii , Stefan Kangas Cc: 68687@debbugs.gnu.org, emacs-orgmode@gnu.org References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <86plxoblrz.fsf@gnu.org> From: Max Nikulin Mail-Followup-To: Eli Zaretskii , Stefan Kangas , 68687@debbugs.gnu.org, emacs-orgmode@gnu.org In-Reply-To: <86plxoblrz.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12f.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, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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: 2.52 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: 2.52 X-Migadu-Queue-Id: 80E5266CA2 X-TUID: A8+DOyigBoHZ On 26/01/2024 14:23, Eli Zaretskii wrote: >> Max Nikulin writes: > >>> 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")) > > I'm not sure the removal of text/x-org in these two hunks is a good > idea: could it perhaps cause trouble to someone, e.g. if an email > message is sent from Emacs with this change and read by Emacs without > it? Changing of `mm-display-org-inline' may be postponed. I am curious however if there are a lot of users overriding their /etc/mime.types to avoid application/vnd.lotus-organizer. However I am unsure whether `mm-uu-org-src-code-block-extract' is used to send messages. If it purpose to decode received messages then the change should be safe. I had a hope to receive some comments from developers familiar with Emacs mail clients. I have realized that I missed `mm-automatic-display' there "text/org" should be added similar to `mm-inline-media-tests'.