Dynamic Web Mail Redirection

I have seen many issues regarding Web mail redirection...i.e., what is a steady and efficient means by which to present a users mail file over the Web. Every Notes domain works off of the Domino Directory, as its known in R5. The code below uses the Domino Directory and several of its standard components to quickly and easily enable this. Basically what this does is builds a URL to launch based upon the users person document in the...

Domino Directory.


1. I created another view in the Domino Directory off of the standard "People" view called PeopleInternetAccess|InternetMailAccess.

A. The first column formula has been changed to:
@Trim(@Subset(Firstname;1)) + @If(MiddleInitial != "";" " + MiddleInitial;"") + @If(LastName !="";" "+@Trim(@Subset(LastName;1));"")

This gives me the username from the person document, which will now match @Name([CN];@UserName).

B. The second column formula has been changed to:
"http://" + @If(@Name([CN];MailServer) = "<ServerName>";"<ServerURL-IPAddress>";"<AlternateServerURL-IPAddress>") + "/" + @Left(MailFile;4) + "/" + @RightBack(MailFile;5) + ".nsf/?OpenDatabase"

This takes the name of the mail server for that user from their person document and assigns the appropriate Web Reference to it. The only thing that may need to be changed or even removed is the @Left(MailFile;4) parameter. All of our users mail files are in a subdirectory called "mail", hence the parameter. Obviously, you will need to nest the @If statements for more servers...simple enough.

2. I have a form in my homepage frameset with a hidden field, called "getInfo". It is computed, with the following formula:
@DbLookup("":"NoCache";"":"Names.nsf";"internetMailAccess";@Name([CN];@UserName);2)

3. I have a shared action, in the action bar of this form, with the formula:
@SetTargetFrame("");@URLOpen(getInfo)

This launches a new browser window, which contains the users mail file based solely upon their login to the site and its matching URL in the Domino Directory.

This was first published in March 2001

Dig deeper on Domino Resources - Part 2

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

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

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close