cozy / cozy-emails

Email Client for Cozy
GNU Affero General Public License v3.0
66 stars 41 forks source link

Impossible to fetch mails from several imap account : password bug #800

Open encolpe opened 8 years ago

encolpe commented 8 years ago

Cozy 2.5.0 with Emails 0.9.21

I imported an account from google. It worked until I had configured a new IMAP account. This imap account worked until I had configured a third IMAP account. And the same problem with a fourth.

In the test connexion settings it said invalid credentials. If I set again the password in an account, this account is working until I set the password in another account.

I suspect a similar problem with the gmail account but I cannot set the password…

clochix commented 8 years ago

Hi @encolpe,

Thanks for reporting!

Could you open the application in its own tab (), open a JavaScript console and type window.accounts.forEach(function (a) {console.log(a.name, a.password);}) This should display the stored name and password of each of your accounts. Are the passwords those you entered, or do we mess passwords between accounts?

encolpe commented 8 years ago

It's the same name for each account, with various case. If I add a postfix to each name I still get the same error.

encolpe commented 8 years ago

Few times later it works with different name. So, I use the same name (firstname+lastname) for all account but a different label.

The good password was stored for each account. I'm not good enough in coffeescript to prepare the fix myself.