unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Handling the message:// protocol in Emacs
@ 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
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Christophe Helary via Users list for the GNU Emacs text editor @ 2024-12-30  2:22 UTC (permalink / raw)
  To: help-gnu-emacs

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?

-- 
Jean-Christophe Helary
https://sr.ht/~brandelune/
@jchelary@sciences.social





^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Handling the message:// protocol in Emacs
@ 2024-12-30 14:01 Jean-Christophe Helary via Users list for the GNU Emacs text editor
  2024-12-30 18:54 ` tpeplt
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Christophe Helary via Users list for the GNU Emacs text editor @ 2024-12-30 14:01 UTC (permalink / raw)
  To: Björn Bidar
  Cc: Jean-Christophe Helary via Users list for the GNU Emacs text editor



> 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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-02  3:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-30  2:22 Handling the message:// protocol in Emacs Jean-Christophe Helary via Users list for the GNU Emacs text editor
2024-12-30  4:29 ` Björn Bidar
  -- strict thread matches above, loose matches on Subject: below --
2024-12-30 14:01 Jean-Christophe Helary via Users list for the GNU Emacs text editor
2024-12-30 18:54 ` 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

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).