What type of item is a "read notification" in visual basic
Posted on 2004-04-05
I am using visual basic to gather information from Outlook and store it in an MS Access application.
I can loop through say my Inbox and using code like:
Dim Olapp As Outlook.Application
Dim Olmapi As Outlook.NameSpace
Dim Olfolder As Outlook.MAPIFolder
Dim OlItems As Outlook.Items
Dim olMail As Outlook.MailItem
Dim strBody As String
Set Olapp = CreateObject("Outlook.Application") 'Connect to outlook "Inbox" folder
Set Olmapi = Olapp.GetNamespace("MAPI")
Set Olfolder = Olmapi.GetDefaultFolder(olFolderInbox)
For Each olMail In OlItems
strBody = olMail.Reply.Body
Not a perfect example, but I hope it explains what I am doing.
This "reads" ordinary mail items perfectly.
But when it comes across a read or delivery notification, whos icon is not a small envelope, but check mark in a circle with a wave of lines after it, first it produces an error which is fine to get around, but I do want to "read" these notifications.
What type of items are these delivery/read notifications with the different icons to the envelope, and what is the visual basic code to "read" them.