Thank you Nicolas.

Jean-Christophe 

On Nov 10, 2018, at 16:28, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

Hello,

Jean-Christophe Helary <brandelune@gmail.com> writes:

I'm pasting a message:// link into an org-mode file but it fails to be
recognized as a link that should open in a mail client.

What is a simple way to have org-mode recognize such links ?

One simple way is to define "message:" as an alias for "mailto:", which
is the Org syntax for such links.  This is done with
`org-link-abbrev-alist' variable, or in-buffer "LINK" keyword:

 (setq org-link-abbrev-alist '(("message" . "mailto")))

One drawback is that you cannot write plain links with abbreviations. So
[[message:foo@bar.baz]] works, but message:@foo@bar.baz does not.

If that is an issue, you can also define a new link with
`org-link-set-parameters':

   (org-link-set-parameters "message"
    :follow (lambda (path) (browse-url (concat "mailto:" path))))

HTH,

Regards,

--
Nicolas Goaziou

Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune