From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yKdYN6/PjWKCbQEAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 08:41:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QMlkN6/PjWJqcQAA9RJhRA (envelope-from ) for ; Wed, 25 May 2022 08:41:51 +0200 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 887E82341F for ; Wed, 25 May 2022 08:41:51 +0200 (CEST) Received: from localhost ([::1]:57030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntkiL-0004t2-9v for larch@yhetil.org; Wed, 25 May 2022 02:41:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntkKq-0000hd-Pf for emacs-orgmode@gnu.org; Wed, 25 May 2022 02:17:37 -0400 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]:44418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntkKn-0001dC-V5 for emacs-orgmode@gnu.org; Wed, 25 May 2022 02:17:31 -0400 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-f18e6ff0f6so24896525fac.11 for ; Tue, 24 May 2022 23:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=dLXR9Zl43zUd1LG+WArF2IXv+I0PNe3tFW36gh8FM6g=; b=H3HDouX01Ripjdtfdv6vzNxMbQgR+Z/4DbeSmbRY+BoZaMNYO46sJ3rs+pI1zLQ76c PgTUdgqsz2aSaoHmiGyQWvjYEUu2uii7vpiwk45b9rMsrehGJiz6l/8J5A2Gdr9ORUzW IvUBsPyNel9G1kVyicPVEPiZf2E4x0hL0PAxdKyU4BgnbTCzhEEhs4ItKe1mDrbGQDbj If+93RD1WgWsrrTuMyg/4uMx5pGDqSqk7gs+2zSEsr96MjXGDFOgPmqNUzA5uFnsjAW1 h/yBSn9cyRx3V115PIA5/QiBfVGnMbr514XxU57k/J1lPAwOa6zjS9qxcEVCi1JyLCx4 /AYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=dLXR9Zl43zUd1LG+WArF2IXv+I0PNe3tFW36gh8FM6g=; b=vyBp3VXuS5mK4mZicsNx1LGZ/OGk/P0Io6GCnseaNotOuGDO2QVjYBbvMGkZe4QSdE pVU5+iy8X5n28Y6/tMFZHy1fTBKEcCy8WDgx6gg4hDyG/ZirBM6cQgWfkvVIXpVVH/ef jgz3fCLyD/XZeRyBvAB3lCs/zwmu9kEWetNM3rBs1ovuoteG7KrZ+czraLC7zpmVhM5A kTHVBUhzJ4o4UWon5XsE9WeP3OakzfUmUT3Ap5i3bvUMXfK4Pqq81W85R1Ijikm7MmYl JU/LSFwFb+vuefS9MgQba91SeLblQr2Mh6NKTp4jxnLBDQFWL5yHNitwKWx5JdiCJb15 1+PA== X-Gm-Message-State: AOAM531But7WsQiJkXIX6mN5/Lr976cYyZJ5f1PKY3ogT/cwKCC+2JHy baS7SXU4tnKMp70E6r6vEac= X-Google-Smtp-Source: ABdhPJxLKV6lYxjBYF6aDMSTfM30PU2czCocfHkYvzpP7scFxXt81Ww39VX5oVv6R40dD1nxF4oSbA== X-Received: by 2002:a05:6870:1715:b0:f1:8fb8:fb9e with SMTP id h21-20020a056870171500b000f18fb8fb9emr4689856oae.176.1653459448593; Tue, 24 May 2022 23:17:28 -0700 (PDT) Received: from localhost ([207.126.91.4]) by smtp.gmail.com with ESMTPSA id g15-20020a9d5f8f000000b006060322127esm5729370oti.78.2022.05.24.23.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 May 2022 23:17:28 -0700 (PDT) From: Ihor Radchenko To: Craig STCR Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: Bug in 9.5.3 org--file-default-apps In-Reply-To: References: <963d5f94-3fdf-a01b-bc91-edc99222cb34@gmail.com> <87czgeaxir.fsf@localhost> <6615610d-93ae-171f-b554-3f4cc79354cc@gmail.com> <87a6bhc1w6.fsf@localhost> <86692975-4d5f-6933-3227-c6b208f76862@gmail.com> <877d6lbsg5.fsf@localhost> <7c75b724-1ea2-5e3e-cbe6-e1895fd35bd3@gmail.com> <877d6j2htv.fsf@localhost> <87ilq14p6p.fsf@localhost> <87v8u0396t.fsf@localhost> <87ilpz3bi0.fsf@localhost> <0d8e9eb3-8b4f-127b-2293-2dfd182cd2cf@gmail.com> Date: Wed, 25 May 2022 14:18:10 +0800 Message-ID: <8735gy2l0d.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:4860:4864:20::2b; envelope-from=yantar92@gmail.com; helo=mail-oa1-x2b.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653460911; 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=dLXR9Zl43zUd1LG+WArF2IXv+I0PNe3tFW36gh8FM6g=; b=pyhQb5bR7/qCjXYM2FaH1iI3azg0ez8VYg4uzcp0R0YYCcy507q+CLuCU9B7HXmTfhb4Ia vEvsAbbzvOVx3STkxhoCdH4bP+P0wgjNDpZlQNaxcN4oe9KUn9J4ivSKB9+mfLcuROQhfE nQVidGAg+rnza2JCS5FrXAtGoJxJgcafxPrDLU9OoszPlAdtgzv9B0vR7Le91QkTdp4Xun crozgwJ24QUhFqdE9ZqJN79vj2ujV2MDADRn6s0b2pEtvzMMS6fsWE95jCclUAp21+xxUb ooIsfUX7+kVwJh0Hi8uxNqUnGsaI3wyw4cirl2GqRGHfIm9pa4BKZ57a4M9izg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653460911; a=rsa-sha256; cv=none; b=oEKbLlDMDHMMkrQQTFmyh9dEJEv/DzNZTqrZK+O3Ecr/6zLFl/jHCpO3KZbogVS0jQd40Z fdh7Kdk84RuP7yGlYvjoXfMNqoAqkSLMkbH6qnVPipk40wJCW/UECjaartOUiV+upNg9Tw 2Gr9a8f9uhqZiN72hpGdPVmN7fygCMdfluoFoYG90BpuUBRvVXFk7WHkpjbUjhRW77aOlY 1UQLOfIT8XXZjbjR0Ym8cHMBJzm/tE9QL8oZcYkp95HF9Sgq+UdAl/2TGObkheYtFCP8rl qGS8kOmtbn2oh6z4qRPViFsa5aeRPUjWSclTD9IxVl9+hw3eNtS0btmPbhB5CA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=H3HDouX0; 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" X-Migadu-Spam-Score: -5.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=H3HDouX0; 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" X-Migadu-Queue-Id: 887E82341F X-Spam-Score: -5.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: o4G59vdmOCl5 Craig STCR writes: > '>$ run-mailcap myscript' One comment. I do not personally have run-mailcap command on my system, but searching for its docstring reveals (http://www.linux-commands-examples.com/run-mailcap): >> If the mime-type is omitted, an attempt to determine the type is >> made by trying to match the file=E2=80=99s extension with those in the >> mime.types files. So, run-mailcap itself does not look inside the file and only checks the extension. AFAIU. Correct me if I am wrong. Best, Ihor