Manage Learn to apply best practices and optimize your operations.

How to create mail files using a LotusScript agent

This LotusScript agent duplicates the AdminP email file creation process by pulling information from a Domino Directory in Lotus Notes/Domino 6.x and higher.

Our corporate extranet site originally gave employees access to policies, committee calendars and other applications. We've added email services to the site for more than 100 accounts. To do this, I had to create the Lotus Notes database and adjust both the access control list (ACL) and mail file owners in the preferences.

When an email account is first created, you can tell AdminP to create the mail file, instead of doing it in real time. Unfortunately, you can't create this particular AdminP request manually, through Notes or the Admin client. With some work, I was able to duplicate this request using LotusScript. The agent pulled the information from the selected Domino Directory entries.

Related resources from SearchDomino.com:
How to turn off the message recall feature in Lotus Notes 8

Domino server setting and email policy tricks admins must know

How to automatically create a backup copy of your Domino Directory

Copy the following agent into your Domino Directory and change the constants in the Declarations section to match your domain. I signed the agent and ran it as a user in the external Domino domain with full admin rights, instead of my usual ID from our internal domain, even though that ID can register accounts interactively without problems.

Once you've adjusted the agent, open the People view, select the documents for people who should have mail files and then select the agent from your Actions list. This agent will cycle through the selected documents, parse out the necessary information to create an Administrative Request to create a mail file and then update the Person document to refer to it.

Note: Remember to

TELL ADMINP PROCESS ALL
to create the mail files or you'll have to wait for it to trigger as scheduled.

This coding is fairly basic; the trick is flagging individual fields as signed and/or protected. This was used in a Lotus Notes/Domino 7.0.2 environment, but could be used in Notes/Domino 6.x and higher.

LotusScript create mail files
(Click on code for enlarged view and script download.)

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

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

This was last published in March 2009

Dig Deeper on Lotus Notes Domino AdminP

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com'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 ...

SearchDataCenter

SearchExchange

SearchContentManagement

Close