Home > Domino Tips > Developer > How to create mail files using a LotusScript agent
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

LOTUSSCRIPT

How to create mail files using a LotusScript agent


Eric Jewett
03.19.2009
Rating: -2.75- (out of 5)


Lotus Notes and Domino tips, tutorials and how-to articles
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


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.

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Mail
Run or restart Notes/Domino agents via text messages
How to turn off the message recall feature in Lotus Notes 8
Domino server setting and email policy tricks admins must know
Top 10 Lotus Notes/Domino administration tips of 2008
Understanding a Lotus Notes Smart Upgrade rollout
Bringing MailRule documents back into view
Use SMTP outbound authentication to relay hosts in Lotus Notes Domino 8
Notes/Domino 6 version of 'Discover Folder'
Five tips to improve email performance
Routing Internet mail from dial-up server via a gateway hub server

LotusScript
LotusScript finds the first occurrence of a string from the right
Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
Search Microsoft Active Directory with LotusScript
Three steps to trap and handle save conflicts with LotusScript
Troubleshoot agents by displaying LotusScript variables online
LotusScript sorts lists alphabetically
LotusScript code rebuilds corrupted busytime.nsf file
Soft-code item names to facilitate LotusScript management
LotusScript agent automates selective mail file replication
LotusScript filters and attaches files to a Notes form

Lotus Notes Domino AdminP
Top 10 Lotus Notes/Domino administration tips of 2008
Avoid Lotus Notes Domino email archiving ACL issues with AdminP
An Administration Process (AdminP) crash course
Best way to standardize group names in NAB
Process of renaming users keeps getting interrupted
Admin2005 preview: Tips, techniques, and a look at Notes/Domino Rel. 7
Steps for user to accept name/OU changes
Renaming a user after marital status change
All about AdminP Part 1
Remotely verify the version of Domino being run on a server

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts