Questions about locating a specific message when automating outlook

M

Mark

I've written an Outlook automation application in C# that
lets me iterate through the list of messages in the inbox
and list information such as sender, date etc.

Now I want to locate a specific message based on some
unique identifying information.

Microsoft.Office.Interop.Outlook.Items.Find says that it
takes a string but I don't know if this is the function I
want or the format of the string if it is the right
function.

Ideally, I could query with something like find message
where "mailItem.From = "mary poppins"
and "mailItem.date.toString() = "6/24/2003 5:39:14 PM".

I also see where each
Microsoft.Office.Interop.Outlook.MailItem exposes a
Session property. Is this a unique identifier that can be
passed as a string to Find?

Pointers to a specific solution or to documentation would
be appreciated.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top