From: Jean-Christophe Helary via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: "Björn Bidar" <bjorn.bidar@thaodan.de>
Cc: Jean-Christophe Helary via Users list for the GNU Emacs text
editor <help-gnu-emacs@gnu.org>
Subject: Re: Handling the message:// protocol in Emacs
Date: Mon, 30 Dec 2024 14:01:01 +0000 [thread overview]
Message-ID: <CA4A9175-D4BE-4DC8-A4C6-4B89BEF743C5@traductaire-libre.org> (raw)
> On Dec 30, 2024, at 13:29, Björn Bidar <bjorn.bidar@thaodan.de> wrote:
>
> Jean-Christophe Helary via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org> writes:
>
>> I’d like to have URIs defined as:
>>
>> message://[string]
>>
>> open in the default macOS Mail reader (Mail.app).
>>
>> How would I go about to achieve that?
>
> You would have to write your own browse-url function and register it to
> `browse-url-handlers'.
>
> Read:
> (info "(emacs) Browse-URL")
Björn,
Thank you very much for the reply.
In fact, when I use M-x browse-url on a message://[string] URL, Emacs properly 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’s an already solved issue, though:
https://emacs.stackexchange.com/questions/45403/is-it-possible-to-create-clickable-links-to-macos-mail-app-email-via-message
It would be good if org-mode could recognize that protocol out of the box...
--
Jean-Christophe Helary
https://sr.ht/~brandelune/
@jchelary@sciences.social
next reply other threads:[~2024-12-30 14:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 14:01 Jean-Christophe Helary via Users list for the GNU Emacs text editor [this message]
2024-12-30 18:54 ` Handling the message:// protocol in Emacs tpeplt
2025-01-01 1:37 ` Björn Bidar
[not found] ` <67749c6e.e90a0220.291618.33c5SMTPIN_ADDED_BROKEN@mx.google.com>
2025-01-02 3:40 ` tpeplt
-- strict thread matches above, loose matches on Subject: below --
2024-12-30 2:22 Jean-Christophe Helary via Users list for the GNU Emacs text editor
2024-12-30 4:29 ` Björn Bidar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA4A9175-D4BE-4DC8-A4C6-4B89BEF743C5@traductaire-libre.org \
--to=help-gnu-emacs@gnu.org \
--cc=bjorn.bidar@thaodan.de \
--cc=jean.christophe.helary@traductaire-libre.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).