/gist:ffcbdb7798afa2204025 Secret
Created
August 21, 2013 14:21
Star
You must be signed in to star a gist
Copy "link" to current Outlook message for use in emacs org-mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim oe | |
Dim mi | |
Dim strMH | |
Set myOlApp = WScript.CreateObject("Outlook.Application") | |
Set oe = myOlApp.ActiveExplorer | |
If oe.Selection.Count = 1 And oe.CurrentFolder.DefaultItemType = olMailItem Then | |
Set mi = oe.Selection.Item(1) | |
Set objMail = mi | |
Set objIE = CreateObject("InternetExplorer.Application") | |
objIE.Navigate("about:blank") | |
objIE.document.parentwindow.clipboardData.SetData "text", "[[outlook:" + objMail.EntryID + "][" + objMail.Subject + " (" + objMail.SenderName + ")]]" | |
objIE.Quit | |
WScript.echo "Mail-Link kopiert: " & mi.subject | |
Else | |
WScript.echo "Select one and ONLY one message." | |
End If |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment