Use the keyword elink
to generate a tidy markdown link to your currently selected message in Apple Mail. You can also configure a Hotkey or Snippet.
This is handy for adding messages to lists and task managers where mail needs to be tackled at a later date.
Credit for the the applescript goes to John Voorhees and this article from Macstories. As well as Daring Fireball from 2007. This is just an adaptation for Alfred users.