Get User's Mail database

Hi There,

I am wondering if anyone knows how to get the user’s mail database, i would usually use something like the following :

dim s as New NotesSession

Dim db as NOtesDatabase

Set db = s.GetDatabase(SERVER;FOLDER;“mailfile.nsf”)

But my problem is that their mail file may be in different folders on the server, i.e. Mail2\jgrant.nsf while others may be in mail3 etc.

Is there a way where i could get the user’s mail file easily? Is there a command i am not finding?

Thanks for any help.

Jamie

Subject: Get User’s Mail database

From Designer Help:

Dim db As New NotesDatabase( “”, “” )

Call db.OpenMail

Messagebox( db.Title & " on server " & db.Server )

(assumes that the script is running under the user’s ID for which the mail is to be opened)

Subject: RE: Get User’s Mail database

FANTASTIC!!!

Thanks for your help.

Jamie