Outlook 2003 Scripting - Working with encripted messages

Hello!

I have written a script with Outlook 2003 (English+SP2+Patches):

Set oFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Folders("Test")
Set oItem = oFolder.Items(1)
Set oInspector = Application.Inspectors.Add(oItem)
oInspector.Display

It is simple!

If the folder called Test contains "normal" messages, the script displays the first message in the inspector. But if it contains digitally encrypted messages the script fails at the 3. line. The error message is: The operation failed.

Anybody met with this problem? What is the solution?

Thank You!

Tamas Pusztai

[743 byte] By [PusztaiTamás] at [2007-12-24]