Bug 267797 - Kmail doesn't connect to kwallet any more
Summary: Kmail doesn't connect to kwallet any more
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.6
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-06 15:44 UTC by nils
Modified: 2015-04-12 10:05 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Error msg screenie (72.06 KB, image/png)
2011-06-14 16:09 UTC, Thomas Tanghus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nils 2011-03-06 15:44:49 UTC
Version:           1.13.6 (using KDE 4.6.1) 
OS:                Linux

Since I updatet KDE from 4.6.0 to 4.6.1, Kmail (I use it with kontact) doesn't connect to kwallet any more. It fails at the beginning of my user session and asks every few minutes again for password. Always after some unsuccessful connections to kwallet, a small window appears with some message like "kmail couldn't connnect to kwallet a few times, maybe a bug in the program"(my DE is german). Other programs such as kopete or quassel are still working well with kwallet.

Reproducible: Always

Steps to Reproduce:
→ Enter new user session
→ enter kwallet password
→ try to check mails

Actual Results:  
kmail connecting to kwallet fails and asks for a password manually.

Expected Results:  
kmail should connect correctly to kwallet and use its stored password to check the mails.

Happend after update: KDE 4.6.0 → 4.6.1
Kmail wasn't updatet.
Comment 1 Jan 2011-03-07 14:25:31 UTC
J have the same problem:-(
Comment 2 Toralf Förster 2011-03-07 17:26:58 UTC
After switching from KDE 4.4.5 to 4.6.1 (still using the old KMail 4.4.10) I had to remove KMail from automatic starting during login b/c it is too fats for the kwallet.
Starting KMail manually after I logged in however works
Comment 3 nils 2011-03-07 17:43:04 UTC
I agree, kmail/kontact does not wait for me to enter the password of kwallet but it starts immediately.
Comment 4 Beat Wolf 2011-03-16 10:01:54 UTC
Same problem here on two computers.
I tried to remove the kwallet password (setting it to empty) so that it open imediately. This did not help. Kwallet tells me that an application tried to use it several time without success.
Comment 5 Peter Hedlund 2011-04-01 20:21:19 UTC
The same happens when trying to add a new mail account. Checking store IMAP password results in a popup saying that KWallet is not available when kwalletd is clearly running and the wallet manager runs fine.
Comment 6 nils 2011-04-27 12:12:36 UTC
Can't reproduce that any more (KDE 4.6.2, KDEPIM 4.11). The only difference now is, that kontact asks for kwallet password not only when checking mails at the beginning, but also when sending a mail the first time in a session. If that's what it should be or not, I don't know.
Comment 7 nils 2011-04-27 12:13:55 UTC
(Sorry, of course I mean KDEPIM 4.4.11 …)
Comment 8 Toralf Förster 2011-04-27 12:34:56 UTC
(In reply to comment #2)
> After switching from KDE 4.4.5 to 4.6.1 (still using the old KMail 4.4.10) I
> had to remove KMail from automatic starting during login b/c it is too fats for
> the kwallet.
> Starting KMail manually after I logged in however works

FWIW:
This was solved by recompiling the Gentoo package with USE flag +semantic-desktop (https://bugs.gentoo.org/show_bug.cgi?id=363683)
Comment 9 Alex Ball 2011-05-12 10:50:17 UTC
I can confirm this for KMail 1.13.6 (Kontact 4.4.10) on KDE 4.6.3 (Kubuntu 11.04 64-bit).

My first IMAP account (set up back on KDE 4.4.2) behaves as expected, but with my second IMAP account (set up a few days ago) I got the message that KWallet was unavailable when setting up the account, and having declined the option to have KMail store it in its own configuration files, I got asked for the password every time I started Kontact, and the error about KWallet not being available every time I closed it.

However, I have managed to workaround the problem (touch wood) using the first account as a template. With Kontact/KMail closed:
1. Open ~/.kde/share/config/kmailrc.
2. Locate the configuration block for the offending account and change 'store-passwd=false' to 'store-passwd=true' (and save).
3. Note the numeric identity for the account at the start of that configuration block (say, Account 1234567890)
4. Open up KDE Wallet Manager, and the default wallet
5. Find the entry 'kmail', select 'Passwords' and right-click or press Ins to add new entry.
6. Name the entry after the numeric account identity (e.g. account-123457890) and add the password (and save).

I presume this means that KMail now has a problem with writing passwords to KWallet, and won't change the 'store-passwd' setting until it has, but that it has no trouble reading from KWallet.
Comment 10 Thomas Tanghus 2011-06-14 16:08:29 UTC
(In reply to comment #9)
> I presume this means that KMail now has a problem with writing passwords to
> KWallet, and won't change the 'store-passwd' setting until it has, but that it
> has no trouble reading from KWallet.

Same experience here in Kubuntu 11.04, KDE SC 4.6.4 KMail 1.13.6.

I have 2 IMAP accounts that works OK but when I added a new POP3 account KMail can communicate with KWallet. I'll try your workaround and see if it works for me.
Comment 11 Thomas Tanghus 2011-06-14 16:09:38 UTC
Created attachment 60989 [details]
Error msg screenie
Comment 12 Thomas Tanghus 2011-06-14 16:12:54 UTC
*** This bug has been confirmed by popular vote. ***
Comment 13 Thomas Tanghus 2011-06-14 16:48:06 UTC
As reported on launchpad:

https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/730957
Comment 14 Jan 2011-07-31 09:02:48 UTC
Same here on Kubuntu 11.04 with KDE 4.6
and on my notebook running KDE 4.7 and KDEPIM 4.7 (KMail2)

The workaround doesn't work, as i already have saved them but changing is impossible because of this bug.

I also get a notice that some application is failing accessing kwallet many times
Comment 15 Joseph Reagle 2011-08-01 13:16:00 UTC
This looks like a duplicate of the (older) https://bugs.kde.org/show_bug.cgi?id=261559 .
Comment 16 Laurent Montel 2015-04-12 10:05:04 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.