Accessing encrypted emails

P

Pradeep

I'm writing code to automate processing of emails in my mailbox (using COM
addin). But unfortunately when it comes to encrypted mails, it fails. I have
the IDispatch for the mail item but QueryInterface for _MailItemPtr fails.
And without _MailItemPtr i can not get things working on this item.
Is there anyway I can get this working.

I did some investigation using VB. If I've select an encrypted email in my
inbox and try simple:
application.ActiveExplorer.Selection.item(1).Display
it returns run-time error, -2147217660 (80040f04) : Automation Error.

But if I double click and open that email once. This automation starts
working.
Things work fine in Outlook 2007, the problem is seen in Outlook2003.
 

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