Manage Learn to apply best practices and optimize your operations.

Unencrypting mail

Unencrypt your email with LotusScript.

To unencrypt mail, create a LotusScript agent and run it using ID with the same public key that was used to encrypt.

Sub Initialize
	Dim session As New NotesSession
	Dim db As NotesDatabase
	Dim coll As NotesDocumentCollection
	Set db = session.CurrentDatabase
	Set coll = db.allDocuments
	Set docMemo = coll.GetFirstDocument
	While (Not docMemo Is Nothing)
		Set item = docMemo.GetFirstItem("Body")
		If Not item Is Nothing Then item.IsEncrypted = False
		Set item = docMemo.GetFirstItem("Encrypt")
		If Not item Is Nothing Then Call item.Remove
		Set item = docMemo.GetFirstItem("$Seal")
		If Not item Is Nothing Then Call item.Remove
		Call docMemo.Save(False, False)	
		Set docMemo = coll.GetNextDocument(docMemo)
End Sub

Dig Deeper on Domino Resources - Part 7

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • 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 ...