Getting the mail database name corresponding to specific user?

Can it be possible to retrieve the mail database name (.nsf file) somehow, through the java program.

I am using a java application in which i m giving username , password and mail file (.nsf file) to retrieve my mails and contacts, can it be possible that i give only the user name and password and system automatically detects my nsf (mail database) and returns me the mails and contacts stored in that database…

any help of any kind will be appreciated.

thanx in advance.

Amit Saini

Subject: Look at the openMailDatabase method of the DbDirectory class

ExampleOpens the current user’s mail database.

Defined in

DbDirectory

Syntax

public Database openMailDatabase()
throws NotesException

Return value

Database

The opened database, or null if the database is not opened.

Usage

If the program runs on a workstation, openMailDatabase finds the current user’s mail server and database in the notes.ini file.

If the program runs on a server, the current user is considered to be the last person who modified the agent (the agent’s owner), and openMailDatabase finds the user’s mail server and database in the Domino Directory on the server.

If the program is making remote (IIOP) calls to a server, the current user is the user who created the session, and openMailDatabase finds the user’s mail server and database in the Domino Directory on the server.

Subject: Are you reading any of your other threads?!? (WAS: Getting the mail database name corresponding to specific user?)

This was answered in your other thread:

If you keep creating new discussions covering essentially the same ground, I imagine it’s going to get horribly confusing!

Subject: RE: Are you reading any of your other threads?!? (WAS: Getting the mail database name corresponding to specific user?)

this was totally different Question as i want to open the mail database of a particular user after taking the user name from the command prompt of my application…so my application shouldnt ask the mail nsf file from the user…nothing else…and the main reason to ask this question is that everything was working fine with DIIOP server has already started and i could easily strike the domino using my java application but problem was to detect the user’s mail database i have to set the “yes” persmission to “Allow HTTP clients to browse databases” under the R5 basics…whats the reason for specially detect all the databases we have to grant this property…

Ben may be you feel that i m asking very stupid and same Question again and again but i just started developing louts notes java application 1 week back so you can understand i m a new developer and this is not an easy thing to learn and develop very quickly…

thanx for replying all my Q.

regards

amit saini

Subject: RE: Are you reading any of your other threads?!? (WAS: Getting the mail database name corresponding to specific user?)

If you read my other response it tells you how to open a user’s mail file. Exactly what you were asking. OK, so it’s a specific user, but if you pass the credentials across it should work.

You can ask as many questions as you want – that’s what this forum is for – but please take on board the responses you get, and keep things in as few threads as required. Otherwise you will simply miss the information you’re receiving.

Subject: RE: Are you reading any of your other threads?!? (WAS: Getting the mail database name corresponding to specific user?)

thanx ben, now i m able to read the mail.nsf for the specific user.

thanx you very much and all otheres you are helping you here.

regards

amit