0

I use the "Copy Message URL" quite heavily in mail app. I would like to paste the link into an org document and make it a clickable link that opens the email in mail.app. This does not currently work. I did try:

[[message://...][email link]]

But this did not work.

  • Have you read (info "(org) Adding hyperlink types") in the Org Mode manual? – Omar Oct 18 '18 at 12:14
  • I assume you can either call mail.app from the commandline with a message://... argument, or else you can use AppleScript to open the message URL. – Omar Oct 18 '18 at 12:16
  • Yes, I did look, but do not know elisp and how to transform the org-man.el into one that will resolve links to mail app. – rev Oct 19 '18 at 14:24
-1

This should work:

(require 'org)
(org-add-link-type "message"
 (lambda (id)
  (shell-command
   (concat "open message:" (url-hexify-string id)))))

The link should be in the following format:

[[message:<message_id@domain.com>][Apple Mail Link]]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.