Is it possible to have an url that links to an individual email message on my local machine? So that if I click on osxmail://759847982 my mail client will open that specific message.

GMail can do this, but I wonder if it's possible in a native client.

I'm open to any application, it doesn't have to be Apple Mail.

3 Answers 3


You can simply drag the message from Mail.app to a folder to create the link you want. The link that is generated is automagically named using the subject line of the email message. Yes, there are many such situations where Mac OS will do the natural thing.

You can also drag any message to TextEdit.app (as long as it's to an RTF document). Sadly, I haven't gotten this to work with Pages '09, but TextEdit isn't that bad. The same is reported to work with Stickies. See this link for a stickies example.

Here is another approach:

In Mail.app, on the message that you'd like to link to, select

View->Message->All Headers

(or H)

and look for the a line that begins with Message ID. Copy the text to the right of "Message ID" and use it to link to that message via


. Make sure to copy the < and > along with the rest of the id. I've tested this and it works with Safari.app as described in this article on MacOSX Hints.

  • 1
    Thanks a lot! I honestly didn't think it would be possible, just threw it up because "you never know..." Commented Jun 28, 2012 at 14:38
  • 1
    ... which brings me to my next question. Any ideas? Commented Jun 28, 2012 at 14:42
  • @MichieldeMare, I've posted an answer there as well :D Enjoy.
    – ephsmith
    Commented Jun 28, 2012 at 16:55
  • to make it work in todoist I needed to replace < by %3C and > by %3E (urlencoded), then it works, amazing, didn't think this is possible!
    – hansaplast
    Commented Jan 12, 2016 at 11:55

A small AppleScript to get the ID from "Mail" on the Mac:

-- need to click on the actual mail message (if threaded) to get the correct message

tell application "Mail"
    set theMessage to item 1 of (get selection)
    set theID to message id of theMessage
  end try
end tell

"message://<" & theID & ">"

Put the above in a script e.g. "get_mail_message_id.scpt"

Be sure to click on the actual message you want in a mail thread. Else, it gets the first (or last?) message in the thread.

% osascript get_mail_message_id.scpt | pbcopy 

Paste directly into iMessage etc.


I'm open to any application, it doesn't have to be Apple Mail.

I have used Airmail in the past which has this functionality.

I don't have it installed anymore (the iOS app was full of bugs and got on my nerves so I'm back to Mail.app) but it was somewhere in the menu bar (search for "copy link").

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .