Outlook 2003 Script - Opening encrypted message error

Hello!

I 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

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

[1272 byte] By [PusztaiTamás] at [2007-12-23]