all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Jean-Christophe Helary <brandelune@gmail.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: message:// links
Date: Sat, 10 Nov 2018 08:28:59 +0100	[thread overview]
Message-ID: <87a7mhcrwk.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <5E03A38D-43F7-4523-ABC5-9CB7B2D3147C@gmail.com> (Jean-Christophe Helary's message of "Sat, 10 Nov 2018 10:06:27 +0900")

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

  reply	other threads:[~2018-11-10  7:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-10  1:06 message:// links Jean-Christophe Helary
2018-11-10  7:28 ` Nicolas Goaziou [this message]
2018-11-10  9:07   ` Jean-Christophe Helary

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a7mhcrwk.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=brandelune@gmail.com \
    --cc=emacs-orgmode@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.