Bug 300933 - Kmail2 asks for the imap password on every boot
Summary: Kmail2 asks for the imap password on every boot
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8.2
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL: http://forum.kde.org/viewtopic.php?f=...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-31 13:32 UTC by Dimitrios Glentadakis
Modified: 2012-08-11 12:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The dialog which asks me the password (greek) (41.29 KB, image/png)
2012-05-31 13:37 UTC, Dimitrios Glentadakis
Details
The dialog with the imap settings (60.40 KB, image/png)
2012-05-31 13:38 UTC, Dimitrios Glentadakis
Details
Screenshot with system monitor details (239.04 KB, image/png)
2012-06-12 04:34 UTC, Dimitrios Glentadakis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitrios Glentadakis 2012-05-31 13:32:55 UTC
After upgrading to KDE 4.8.2 from 4.6.5 kwallet asked me to be opened for the password of kmail. I answered 'Always' but every time after a boot it asked me the password. So, i choosed to keep the password localy and unsecurily. But after a reboot i am still asked for the password. impossible to make kmail2 remember it.

Reproducible: Always

Steps to Reproduce:
1. Boot the system.
2. kmail2 asks for a password
3.
Actual Results:  
Ask for the imap password

Expected Results:  
Dont ask any more the password

If i close kmail before shutdown the system, after reboot i launch the kmail2 and then it does nt ask me for the password. May be it starts very fast before akonadi ?
Comment 1 Dimitrios Glentadakis 2012-05-31 13:37:07 UTC
Created attachment 71463 [details]
The dialog which asks me the password (greek)
Comment 2 Dimitrios Glentadakis 2012-05-31 13:38:51 UTC
Created attachment 71464 [details]
The dialog with the imap settings

We can see that the password is already assigned; and it does nt exist a check-box with the choice "Save password" as it was in kmail1
Comment 3 Dimitrios Glentadakis 2012-05-31 18:45:57 UTC
After these settings: https://bugs.kde.org/show_bug.cgi?id=259949#c119

kmail proposed to store the password in kwallet and i said 'Yes for always' and now kmail does nt ask for a password. So the cause of the problem was an akonadi resource.

I will do some more tests and i will reply about the succes or not
Comment 4 Paul 2012-06-01 16:21:40 UTC
I get the same irritating behaviour.

I tried starting up with an empty session (was set to restore previous session) and the problem disappears.

Also, if I restart akonadi and kontact, the login to my imap servers happens automatically, and akonadi does not ask for my password.

This leads me to believe it may have something to do with the order in which startup happens. If everything starts automatically, like when you restore your previous session, somehow akonadi starts before kwalletmanager is ready. So akonadi can't read the passwords, and it prompts to enter them.
Comment 5 Dimitrios Glentadakis 2012-06-01 16:33:37 UTC
Me, i dont have any more the problem but i deleted almost all files with 'akonadi' 'nepomuk' in their name in my /home. 
So i have a new akonadi environment...
Comment 6 Dimitrios Glentadakis 2012-06-01 17:12:18 UTC
Of corse i cannot be happy for a long time as usual. After reboot i have the dialog asking for the imap password ! :)
Comment 7 Dimitrios Glentadakis 2012-06-02 05:58:34 UTC
I deleted all entries about imap and google mail and akonadi google in kwallet and i logged in and it asks me the kwallet confirmation and the dialog to enter the imap password. I entered the password, i choosed accept always in kwallet question, i logged in again and it did nt ask me the password
Comment 8 apache 2012-06-04 07:28:42 UTC
This happand to me after frash install of Kubuntu. 
There are other people affected:
http://forum.kde.org/viewtopic.php?f=215&t=102460&p=223821#p223496
Please make kwallet work as described here by axel:
https://bugs.launchpad.net/ubuntu/+source/kubuntu-default-settings/+bug/1003398
See discussion:
http://www.kubuntuforums.net/showthread.php?58954-kwallet-and-safe-password-management&highlight=kwallet
I used "emty space" method but of course it is not the recommended solution.
Comment 9 Dimitrios Glentadakis 2012-06-12 04:34:17 UTC
Created attachment 71750 [details]
Screenshot with system monitor details
Comment 10 Dimitrios Glentadakis 2012-08-10 17:11:24 UTC
I tried to disable the kwallet with the imap.
I chose "never use kwallet" when i was asking from the kwallet dialog.
In the next boot the imap was nt connected. I would like to add manually the password so i open the imap configuration dialog. There, the only field that i could nt file was the password field. All other fields were editable except the password field. So, i understood that i have to use kwallet , is the only way to be able to input the password but imap resource does nt have access in kwallet on every start up ?

Please help me find out how this is handle, what i have to do to finally be able to store definitely the password and don't be asked again.
Comment 11 Dimitrios Glentadakis 2012-08-11 06:18:17 UTC
Since yesterday, kmail asks for the smtp password the first time when i send a message, the "store password" checkbox is checked. after the first time it does nt ask me any more for the smtp password
Comment 12 Dimitrios Glentadakis 2012-08-11 12:53:41 UTC
I have just updated to KDE 4.8.5 and i don't have anymore this problem