Accessing encrypted emails

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Back
Top