Manage Learn to apply best practices and optimize your operations.

Remove Encryption from Mail

While converting users from North American to International licenses (which requires a new ID in 4.X), I discovered a problem -- users who had encrypted mail in their mail file could not read any of the encrypted documents using the new ID. This agent removes the encryption from the documents so the user can read all their old messages with the new ID.

First, create a view called "Encrypted" with the following view selection formula:

SELECT (Form = "Memo" | Form = "Reply") & Encrypt = "1"

View column formulas don't matter. I just used the columns from the Inbox.

Create an agent with the following code. Set it to run manually from Actions menu, on all documents in the database.

Sub Initialize
Dim session As New notessession
Dim database As notesdatabase
Dim view As notesview
Dim document As notesdocument

Set database = session.currentdatabase
Set view = database.getview("Encrypted")
Set document = view.getfirstdocument

While Not document Is Nothing
Call document.removeitem("$Seal")
Call document.removeitem("$SealData")
Call document.removeitem("Encrypt")

Call, False)

Set document = view.getfirstdocument
End Sub

You can then create the new ID and the user will have no problems.

Dig Deeper on Lotus Notes Domino Email Encryption



  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...