From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Handling the message:// protocol in Emacs Date: Mon, 30 Dec 2024 14:01:01 +0000 Message-ID: Reply-To: Jean-Christophe Helary Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23498"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jean-Christophe Helary via Users list for the GNU Emacs text editor To: =?utf-8?Q?Bj=C3=B6rn_Bidar?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 30 15:02:15 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tSGLW-0005wr-8Z for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 30 Dec 2024 15:02:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSGKp-0000aE-CC; Mon, 30 Dec 2024 09:01:32 -0500 Original-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 1tSGKW-0000ZO-Rm for help-gnu-emacs@gnu.org; Mon, 30 Dec 2024 09:01:13 -0500 Original-Received: from mail-4022.proton.ch ([185.70.40.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSGKS-0007Cg-FO for help-gnu-emacs@gnu.org; Mon, 30 Dec 2024 09:01:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=traductaire-libre.org; s=protonmail3; t=1735567265; x=1735826465; bh=EcWRHY3nySrIIulpdk6dR3/vlxFlX86/BhJdRuKvk7U=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=GdnTEJATcsXSESo3lK55RV4wo+BSjl5Ai/82BbGWUz3FfMfeIw72st+khzor4MUeI fvlWGJt9HTsuBhCUSQusr6hncoOF2663qW/nDvIW33bMT9WLx2PluYF+5njtYNO5aq Y6aW8GhqkSGPLhR3WlmF19FY07JoWQfu7AdrlHq/VgO67wd5JURvV4bk3CnC+PYicC 1+rTBO0DpGa/7XYLJDl8vNmTmyBUlvOD+XrlfHEbYp6DuXovolPPtqkRrdOkfT3bDJ HdReIPadPIH4AB6KGgNxODh4XWIJTlVAEL/GFfl9KUzfzfyTHPtqtly0Tdd5Hki5jT F7WG7k1u7JQ3Q== Feedback-ID: 92162971:user:proton X-Pm-Message-ID: 26fbe8a4510d412212f7a7075d2eef617ec5f27c Received-SPF: pass client-ip=185.70.40.22; envelope-from=jean.christophe.helary@traductaire-libre.org; helo=mail-4022.proton.ch X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) AC_FROM_MANY_DOTS=2.499, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:149071 Archived-At: > On Dec 30, 2024, at 13:29, Bj=C3=B6rn Bidar wrot= e: >=20 > Jean-Christophe Helary via Users list for the GNU Emacs text editor > writes: >=20 >> I=E2=80=99d like to have URIs defined as: >>=20 >> message://[string] >>=20 >> open in the default macOS Mail reader (Mail.app). >>=20 >> How would I go about to achieve that? >=20 > You would have to write your own browse-url function and register it to > `browse-url-handlers'. >=20 > Read: > (info "(emacs) Browse-URL") Bj=C3=B6rn, Thank you very much for the reply. In fact, when I use M-x browse-url on a message://[string] URL, Emacs prope= rly opens it in the mail application. I guess it might be an org-mode issue then, since the org-mode file where I= have the URL properly recognizes a https:// URL as being clickable but not= a message:// URL. It looks like it=E2=80=99s an already solved issue, though: https://emacs.stackexchange.com/questions/45403/is-it-possible-to-create-cl= ickable-links-to-macos-mail-app-email-via-message It would be good if org-mode could recognize that protocol out of the box..= . --=20 Jean-Christophe Helary https://sr.ht/~brandelune/ @jchelary@sciences.social