From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id yJuoKjARZWZExwAAe85BDQ:P1 (envelope-from ) for ; Sun, 09 Jun 2024 04:19:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id yJuoKjARZWZExwAAe85BDQ (envelope-from ) for ; Sun, 09 Jun 2024 04:19:28 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ushin.org header.s=key1 header.b="lp9nhE/P"; dmarc=pass (policy=quarantine) header.from=ushin.org; 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=1717899568; 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=o7u0NS3LdomN2Obq4luCFzZry2SIyfptlxMVTOAUS9s=; b=JMT87xmFgPuAZujJPyvOP81u2ACgUtcy1ZDOuRFmGOsu4gnwdv+vzBPJx0V8NTT5UCwQ4N +3+qg96vd2WBNwGp33t13418TwjCGUZ0TU4up5ruLRGkrL/pYfnFvMLjhI2YmXASw/32Yc xXsA5vYnxUTxw5RydUXyBfprKFvm/yRvYS4M2Nv0YIF42/zIZhU6IXpuqjimh1Ywdy6ea+ zJOglIt0q8Yx1QhcpNQOppvQdn4Po8NYrwGN4KW/7FJ49186O+GPhMDcC2KzMxch+h1qNz mI2O/wPBueNeOO1hkQ/y0U0IpqgffFn79ZJv7/PoWvPigOajT2e4AnihRubGHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717899568; a=rsa-sha256; cv=none; b=IWB1HJFE/BgixaKbev15AiDQMyBNp0et7uP9bHEC4bwnkllUFZM+znd67ehgcR8m1df/6o cUNot0tdTnW2mIsJ6vo6N9+/HCiXomSnHWDBSoz7rgpxwiexENpEanrlcvcLaQb/vzHeeG SNyhNe4vBzj/Vb0CHKjbhrQ3wllUOjEADyWgMSQ6srUCB0bOq46lnsSCytDSwdHdvF8sd0 k8BSLH90tqheucy0YXITgrKMSUcPzFSBmkDRStOsVgqm/6YJXAR5iTAqXEYELLc1Td9+fP LEcovYQHzGeKqktR7E1nRSC4OvveJpxVrGicTw+iNZMewM8YgxrKh5Op+nZV2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ushin.org header.s=key1 header.b="lp9nhE/P"; dmarc=pass (policy=quarantine) header.from=ushin.org; 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" 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 52A7A60691 for ; Sun, 09 Jun 2024 04:19:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sG88h-0005Ie-WD; Sat, 08 Jun 2024 22:18:36 -0400 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 1sG88g-0005IR-TD for emacs-orgmode@gnu.org; Sat, 08 Jun 2024 22:18:34 -0400 Received: from out-172.mta1.migadu.com ([95.215.58.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sG88d-000269-NN for emacs-orgmode@gnu.org; Sat, 08 Jun 2024 22:18:34 -0400 X-Envelope-To: yantar92@posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ushin.org; s=key1; t=1717899507; h=from:from: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; bh=o7u0NS3LdomN2Obq4luCFzZry2SIyfptlxMVTOAUS9s=; b=lp9nhE/PDBmT4yAEmk9OwydwQKZkKbdsG2RsEIeLN+lH7s6yggSdUyld0MyEQ/UNnhmsuD TDAeG5z/WKwlai/k9T4IOEkJwxdr2dY/8u58WjquQxnW8CdwEIUK/VkfhhD13TFkOMNsO9 ojoClJu8kNSP1E6oeC67jP+p8K1BaA+nXbZNc8vgBq6optyUfuVsJA1iiZwO62Okz97VrU eu5N4yKxEwnZNt1wmpz3n7LE1XcSGD1r8gqRx3FGAs2/cdhLJKEtYYS+4AwEITVXk2d6r1 Fq9HjXIwzbyIKaPMRWoBMy3NHsd1TN/+19yyzuNYw42HBfWDemlkBL+guasqaQ== X-Envelope-To: emacs-orgmode@gnu.org X-Envelope-To: adam@alphapapa.net X-Envelope-To: jonas@bernoul.li X-Envelope-To: public@protesilaos.com X-Envelope-To: adam.porter@47ap.net X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Joseph Turner To: Ihor Radchenko Cc: Org Mode Mailing List , Adam Porter , Jonas Bernoulli , Protesilaos Stavrou Subject: Re: Using search options in HTTP-style links In-Reply-To: <87ikzbrpwb.fsf@localhost> (Ihor Radchenko's message of "Sat, 18 May 2024 17:28:04 +0000") Date: Sat, 18 May 2024 23:45:30 -0700 References: <871q77ugcf.fsf@ushin.org> <8734rm7sp0.fsf@localhost> <87il0fpqp5.fsf@ushin.org> <87il09rwr8.fsf@localhost> <87wmnvzg35.fsf@ushin.org> <87fruftl23.fsf@localhost> <87wmnrcafd.fsf@ushin.org> <87ikzbrpwb.fsf@localhost> Message-ID: <875xuivoy8.fsf@ushin.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=95.215.58.172; envelope-from=joseph@ushin.org; helo=out-172.mta1.migadu.com X-Spam_score_int: 13 X-Spam_score: 1.3 X-Spam_bar: + X-Spam_report: (1.3 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_96_XX=3.405, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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: -3.54 X-Spam-Score: -3.54 X-Migadu-Queue-Id: 52A7A60691 X-Migadu-Scanner: mx11.migadu.com X-TUID: TGmu5uas0eu1 Ihor Radchenko writes: > Joseph Turner writes: > >>> You probably meant to link to some different ticket here. >> >> https://todo.sr.ht/~ushin/ushin/188 > > So, you want an equivalent of `org-safe-remote-resources'. For now, we've added a command `hyperdrive-mark-as-safe`, which causes automatic major modes activation when opening a file in a "safe" drive: https://ushin.org/hyperdrive/hyperdrive-manual.html#Mark-a-hyperdrive-as-sa= fe https://git.sr.ht/~ushin/hyperdrive.el/commit/1e9b892e87979d3da5e9a1f04d025= 5a620500214 `org-file-contents' and `org-safe-remote-resources' already work with hyperdrive.el. We just need to figure out a way to treat #+SETUPFILE: /foo/bar.org as #+SETUPFILE: hyper://CURRENT-DRIVE-PUBKEY/foo/bar.org since the latter already works. Perhaps this link conversion will work when we implement magic file name handlers. :) > Generally, we might eventually move it to Emacs core, making a more > general Emacs safety framework with unified preferences. > But someone=E2=84=A2 has to do this job. As usual. Yes, a general Emacs safety framework would be an improvement. Thank you for helping thinking through these security concerns! Joseph