Hi

Joachim Draeger schrieb:
Hi,

Raghavendra Setty schrieb:


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

AFAIK(!) James does not support storing plain passwords into the users table
out-of-the-box.
Without the plain password you can't connect to the pop3 Server because you can't recalculate the plain password from the SHA hash. (That's why SHA is used.)
Well it whould be nonsense to encrypt passwords if it whould be so easy to decrypt it :-P

So you have the following possibilities

1. I'm wrong and it is possibible to tell James to store plain passwords

No you are right ;-)
2. You hack James to use plain passwords (start somewhere at JamesUsersJdbcRepository)
We will add support for more encryption modes. I think we will also add clear storage.

3. you get the plain password from another source
This is the best solution ,,
4. you read the mails directly, without javamail, from DB/File
also possible

Joachim

bye
Norman



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

Reply via email to