Determine User's mailbox file in LotusScript

In my Form I am using the Names type edit field which brings up a dialog. Once the user’s are selected and put into the field how can I determine what those user’s mail files are?

I either need to be able determine what the user’s mailbox file is or I just need to bring up a dialog box for mailboxes.

I am making a test tool which needs to connect to a user’s mailbox file, remove mail, and compact the database.

Any ideas?

Thank you,

Larry

Subject: Determine User’s mailbox file in LotusScript

Use this if it is Formiula language.Returns the name of the Domino server and the name of the current user’s Mail database.

@MailDbName

Either Scribt then following

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

dim srv as string

dim File as string

Call maildb.OpenMail

Srv=maildb.Server

File=maildb.Filepath

Subject: RE: Determine User’s mailbox file in LotusScript

This is not quite what I was wanting to do, but it is still very interesting. Thanks for the sniblet of code, I can already think of a couple uses for it.

Subject: RE: Determine User’s mailbox file in LotusScript

Great Code - Thanks!

Subject: Determine User’s mailbox file in LotusScript

You can get the mail file related information from the users person document in the names.nsf

Also, tasks like Compact can be automated at the sever level, so you need not code.

Ashish