This gist contains two VBA macros:
- AddLinkToMessageInClipboard: Moves a message to an archive folder, then generates a link to the message ready to be pasted in org-mode. I am moving the message to the archive first because Outlook changes the message ID's when it is moved to a different storage;
- AddLinkToOpenMessageInClipboard: Grabs the link to an open message, without moving it.
And an elisp snippet to tell Emacs how to open the Outlook links: org-outlook.el. You can copy this snippet to your .emacs file
Credit to this post on superuser.com for the initial idea.
Disclaimers
- I have close-to-zero knowledge of VB and VBA, apologies if I used any anti-patterns or bad practices;
- I use this every day on Outlook 2003 and Emacs 24, not tested on any other versions.