Search DominoPower's 11,441 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
How to audit your address book: more code (continued)

Extend the principles a little further
The mail domain that person records are in could be specified on a dialog, or we could check the mail domain on the person record against the maildomain on their specified mail server and see if they're the same.

Make an assumption
We could also assume that the user who runs the code is the one who should be emailed the resulting report, again removing the need for code changes.

Make verbose and condensed versions
You could make verbose and condensed versions. The condensed version would only report severity 1 items, for example, and would save output by skipping reporting users where no problems were found. This would make it easier to concentrate on things that need to be fixed. If we have a dialog to specify options, this would be one of them.

Add error-handling code
As it stands, there's no error-handling code, so if there were problems outside of the code's ability to cope, it would die at that point and not report anything. A simpler method might be to save the report document in the database as we go along, maybe after each person record is checked, so that the incomplete report could be retrieved if it does fail.

Put the code in a script library
You might want to put the code in a script library and break it up into smaller procedures. I nearly did some of this for this article because it might have made it easier to explain. However, I resisted. Doing this would make the code easier to restructure for the future and make it easier to reuse bits of the code.

Lastly, I have a question. I've written other pieces of code like this that check issues in a Domino infrastructure, particularly to do with mail. Examples are code that checks that mail databases actually exist where the directory says they exist, checks of mail database ACLs for standards compliance, checks that mail databases that reside on a clustered server also reside on another server in the cluster, and so on. Tell me, via the Powerboards or email me at mick_moignard@unipart.co.uk, whether these would be of interest to you as future articles.

Product availability and resources
For the Knowledgebase, visit http://www-3.ibm.com/software/lotus/support/.

Easy, flexible article reprints
ZATZ now offers a quick, easy, flexible and inexpensive way to use article reprints in your marketing and promotion efforts. You can now get article reprints for a one-time fee of only $200. For details, visit http://mediakit.zatz.com/reprints.

Mick Moignard has been working and traveling with Notes since Release 2.0 in 1991. He is a Principal CLP with Unipart Advanced Learning Systems, a Lotus Advanced Partner in the UK. If you want a copy of the code discussed in this article, or want to discuss anything to do with this article, or indeed anything else to do with Notes and Domino, email Mick at mick_moignard@unipart.co.uk. UALS, at http://www.uals.co.uk, will also happily discuss any Notes and Domino application development opportunities or infrastructure projects with which you need help.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.

Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).

Tap here to get started!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login