How to identify an encrypted email in Lotus Script?

Hi,I want to check if an email is an encrypted email,

In Notes email, an encrypted email has an item “Encrypt” = “1”, but I can not use this code to check if this email was encrypted. The compiler does not recognize encrypt as an notes item. Any idea how to do it in LotusScript? thanks a lot,

If maildoc.Encrypt(0) = “1” then

Messagebox “this email was encrypted”,

End if

I also tried to use doc.IsEncrypted, but it returns false in debug, it does not work. But I can see Encrypt = “1” in Notes Item.

Subject: Encrypt

Hi Peter, I amno big designer myself, but could you please try ‘$KeepPrivate’ instead of ‘Encrypt’ and check?

Dev