Howto: Get the MIME of an item from a mailbox.

This VBSript sample uses WebDAV to read the mime of a message item and write it to disk. dim sHREFdim sUserName  dim sPassword  dim sResponse  dim HttpWebRequest dim sHREFdim sUserName  dim sPassword  dim sResponse  dim HttpWebRequest sHREF = “http://myserver/exchange/Administrator/Inbox/testabcd.EML”  ‘ TODO: change as neededsUserName = “Administrator”    ‘ TODO: change – needed for Basic AuthenticationsPassword =…

3

Looking for a way to save a .msg file or load a .msg file?

Outlook Object Model (OOM) can do this easily.  Below is a sample:   howto – save and load a message to a folder.Sub SaveAndLoadMsgFile()   Dim ol As Outlook.Application   Dim olns As Outlook.NameSpace   Dim oOrigItem As Outlook.MailItem   Dim oNewItem As Outlook.MailItem   Set ol = CreateObject(“Outlook.Application”)   Set olns = ol.Session   Set oOrigItem = olns.GetDefaultFolder(olFolderInbox).Items(1)   oOrigItem.SaveAs “C:\test.msg”, olMSG  …

2