Take the 2-minute tour ×

I have send an Encrypted email to Lotus notes in-box, If I access that email from my local Its giving true, If the same email is running different system Its giving false. Is it setting issue? My code look like logger.debug("This Email is encrypted? "+document.isEncrypted()); my Local logger is printing "This Email is encrypted? true" If i run the same email form some other system its printing "This Email is encrypted? false" This is the document properties. Field Name: Encrypt. Data Type: Text Data Length: 1 bytes Seq Num: 1 Dup Item ID: 0 Field Flags: SUMMARY


I don't know My code is behaving differently in different places.

Thanks for the help.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

The isEncrypted() property is not related to the Encrypt field. That field is just a UI switch. The isEncrypted() property is based on the $Seal item, or on SMIME content if the message is in MIME format.

There are two questions that are probably related to what you are seeing:

  • Are you using two different Notes ID files to read the message?
  • Are you using the same version of Lotus Notes on both systems?

If you open an encrypted message in the Notes API, and your current Notes ID file contains the correct private key to decrypt the message, then the message is automatically decrypted. This happens in a layer down below the LotusScrpt and Java APIs, so these APIs see that the document is not encrypted and return false. But apparently IBM changed this in version 8.5.2. Here's a link that reports that in 8.5.2 the isEncrypted() will return true. It seems that IBM has fixed the code so that it now knows the right answer even though the automatic decryption was already done.

And of course, if you open an encrypted message in the Notes API using a Notes ID file that doesn't contain the correct private key to decrypt the message, IsEncrypted() will always return true.

share|improve this answer
Thanks for replying Richard. I am using same notes id for reading the message. Yes there is two different versions. I am using lotus 8.5 and my testing system has lotus 8.0 on that. Is it version issue? –  Sarma Oct 1 '12 at 16:55
This post on the IBM DeveloperWorks forum indicates that it is not a version problem until 8.5.2: www-10.lotus.com/ldd/nd85forum.nsf/… –  Richard Schwartz Oct 1 '12 at 19:22

Your Answer


