Manage Learn to apply best practices and optimize your operations.

Changing a Lotus Notes database mail file from 'archive' to 'mail'

If a Lotus Notes database mail file spuriously shows "Archive" instead of "Mail," this LotusScript code will remedy the problem.

When a Lotus Notes database mail file shows "Archive" contrary to "Mail," you can run this code to change the ArchiveDatabase field value to 0. Simply close the Lotus Notes database and open again. Then, run the script with the user ID.

Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db = s.currentdatabase
Set doc=db.GetProfileDocument("archive database profile") 
doc.ArchiveDatabase = "0"
Call Doc.Save(True,True)

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip library by member Rodrigo Mattos. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

Dig Deeper on Lotus Notes Domino Archiving

SearchWindowsServer

Search400

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury

SearchDataCenter

SearchContentManagement

Close