Bug 170904 - receive accounts are deleted if kontact/kmail is killed
Summary: receive accounts are deleted if kontact/kmail is killed
Status: RESOLVED DUPLICATE of bug 169166
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-12 10:25 UTC by S. Burmeister
Modified: 2009-01-23 19:29 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2008-09-12 10:25:23 UTC
Version:            (using KDE 4.1.1)
OS:                Linux
Installed from:    SuSE RPMs

I have 3 receive accounts. If I open kontact (or it is started when logging in), kmail asks for access to kwallet.

If you wait long enough, it will open dialogues asking for username (filled in already) and password.

Cancel each of those dialogues.

Allow kmail access to kwallet, i.e. click on "allow once" in the respective dialogue.

Go to File > Quit

Kmail tells you that it does not have access to kwallet and whether it should store the password in a file. this is wrong in to ways. First, since you just allowed access to kwallet, it seems that kmail does not re-check whether it does or does not have access to kwallet. Second, if it could not get the passwords from kwallet, there is nothing to store to the config files.

Now press CTRL+ALT+ESC and click on the dialogue described above in order to kill kmail.

Re-open kontact and kmail will prompt for your first receive account's username and password, both blank.

If you have a look at the account settings, all receive accounts but the first are completely gone. The first one only has its name but no server or any other settings.

Expected behaviour: do not remove existing information from kmailrc in case of crash/kill.
Comment 1 S. Burmeister 2009-01-02 12:13:50 UTC
There is an even easier way to reproduce with current trunk! If kontact starts, it asks for access to kwallet (allow once, always etc.), don't grant it, just leave it like that and log out.

Kontact/kmail will shortly display a window that it does not have access to kwallet, which is kind of right. Although I think this dialogue is only meant if there is really no kwallet and not if it is shutting down.

Anyway, the dialogue is only shown for a second anyway, after that KDE shuts down. After logging out, log back in and kmail will ask you for username and password of one of your incomming accounts, yet fail, because there is no server set. All other incoming accounts are gone.

kdepim rev. 904018
Comment 2 blibberblubb 2009-01-03 16:30:52 UTC
I can confirm this bug. Since I use kmail on my laptop (and have it autostart, as it makes part of my saved session), it happens I'm not connected to the internet, so I don't bother to enter my password into kwallet. The next time I actually would like to use kmail again, I need to re-enter my pop3 data all over again. Happens like ten times to me per week :(
Comment 3 Ionut Ciocirlan 2009-01-04 00:06:47 UTC
Confirmed this way:
1. Try to fetch mail for an account; keep kmail from accessing the wallet (e.g. by not opening a password protected wallet);
2. The user/pass prompt appears, cancel it.
3. (try to) Close kmail. It complains about how it should store the password in a file (I wonder what password, it never got any..)
4. Kill it while displaying that prompt.

This resulted for me in 1 out of 2 pop accounts disappearing.
Comment 4 Luka Renko 2009-01-04 00:38:16 UTC
I can also confirm this on KDE from trunk version.
Comment 5 Thomas McGuire 2009-01-19 20:34:50 UTC

*** This bug has been marked as a duplicate of bug 169166 ***
Comment 6 Johannes Tophøj Rasmussen 2009-01-23 15:15:52 UTC
I have experienced this twice during the last couple of months. Losing two disconnected imap folders each time (kontact 1.3, kmail 1.10.3. As far as I know it happened after a kwallet crash upon turning off the computer.
...
Comment 7 Thomas McGuire 2009-01-23 15:39:38 UTC
> I have experienced this twice during the last couple of months. Losing two disconnected imap folders each time (kontact 1.3, kmail 1.10.3. As far as I know it happened after a kwallet crash upon turning off the computer.

As you can see in bug 169166, this is fixed in KDE 4.1 branch, KDE 4.2 branch and in trunk now :)
Comment 8 Johannes Tophøj Rasmussen 2009-01-23 19:29:18 UTC
Ahh... great, thanks. I am already running kde 4.1 from kubuntu 8.10. I will wait for the repositories to be updated. Again thanks.