Raghavendra Setty wrote:
Hi all,

I am using James - pop3. Below are the steps i am using to retrieve the
mails from server:

Store store = session.getStore("pop3");
store.connect("localhost", userName, password);
inbox = store.getFolder("INBOX");

The password what i get for a particular user from "users" table is
encrypted (SHA).

What should i do so that i can retrieve mails of the user. Please help
me to resolve this issue.

You have to use the real password and not the one encrypted by James for its checks.

If you have a james user with username "foo" and password "bar" you simply use store.connect("localhost","foo","bar").

Simply ignore the SHA hash that James use for the password check: this is an internal thing.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to