Summary: | Akonadi asks for wallet password even though no kmail2 has not been started | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Paul Gover <pmw.gover> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | dvratil, jiakomo, jo4kde, martin.ruessler, silver.salonen |
Priority: | NOR | ||
Version: | 4.8 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Paul Gover
2012-04-06 18:00:54 UTC
I have the same problem (with imap) (In reply to comment #0) I said: > ... > It may be irrelevant, but something strange is also happening related to the > chromium web browser. I let it store its web passwords in the KDE wallet > (it creates a binary store, called "Chrome form data"). If chromium is > running before I start kmail2, and if chromium has already asked for the > wallet password, then starting kmail2 does NOT ask for a wallet password, > and kmail2 happily retrieves my email. I presume chromium is doing > something naughty here, and not scoping its use of the wallet properly. > ... It's been pointed out to me that this behaviour can be changed by editing the [Auto Allow] stanza in ~/.kde4/share/config/kwalletrc, and I'd probably caused kwallet to include "chromium" in that stanza some time ago. So the paragraph above was indeed irrelevant. The main bug described remains. Now also have this problem. Ticking the option "Switch offline on KMail Shutdown" does not help. I always close kontact before logging out. Everything was running fine for 4 months. No idea what triggered the problem. I installed updates 2 days ago but rebooted and logged in yesterday without this problem. When I hit "Deny", kontact/kmail popped up a error message in the lower right corner and coloured the IMAP tree view red. Will now re-login and hit "Always allow". Not a big deal. JJ For me, akonadi checks my mails (without involving kmail) and therefore asks for a password. Is this still valid for you? In Akonadi world, KMail, KOrganizer etc are just frontends for Akonadi. The actual handling of PIM data, including synchronization happens automatically, as it's controlled by Akonadi in the background This is a combination of two factors: a known bug that Akonadi will trigger email synchronization when resource is started and that we forcibly start all Akonadi resources on Akonadi startup, even when they are not needed. The only workaround I can think of right now is that you allow access to KWallet to all Akonadi resources that require it, so that you are not bothered by the password prompt. To me it seems the original report actually already is about KWallet prompting for password, eg. this is already a presumption. The behaviour changed with the latest KDE PIM release I installed (4.8.5); up to and including the previous (4.8.3), it remained as described in the bug above. It now appears to work as I'd expect. (Whether that's correct is another question, but it suits me!) Thus, if I start Kontact before doing anything else, Kwallet pops up and asks for my password, after which it successfully gets my new mail etc. If I start Firefox first (I've changed to that in preference to Chromium), the first time I browse a web page allowing a login causes the Kwallet plugin to pop up and ask me for my password. If I now start Kontact, it doesn't bother to ask for a password, it just goes off and get my mail. I believe I can tailor this behaviour in the KDE System Settings, but it's what I want. The one scenario I'm not sure about is if I start Firefox, and then close it, whether Kontact asks for a password. I tried testing it, but think I need to wait longer for the password from Firefox to expire. I suspect the change in behaviour is linked to the fact that I now get to see the "new mail" gizmo in the Task Manager. I suspect that the KDE desktop was starting it silently in the background immediately after login, and now it gets kicked off when I start Kontact, which is the behaviour I expect. (This may be because I explicitly closed both Kontact and the "new mail" gizmo once before logging out of KDE; maybe that cleared it from the list of tasks to restart at login. But I'm guessing.) In summary, I'm now a happier bunny. (If I could work out what semantic desktop and akonadi and all that actually bought me, I'd be ecstatic. How about updating KDE help and find files applications guys? ) Sorry, forgot to say, if I start KDE but use neither Kontact nor Firefox, now nothing pops up and asks for a password, which was, of course, the point of the bug. This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present? If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months. Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input. The unexpected behaviour is still present in KMail5 (tested with version 16.08 of current OpenSUSE Leap 42.2). However, reading comment #5 and observing that "New Email Notify" boxes pop up even if kmail/kontact has not been started yet in the current KDE session, this seems to be a feature, not a bug. Workaround: Store all e-mail passwords in a single KDE wallet. To avoid even the first password pop-up, set an empty password for the wallet. (Note, however, that the latter increases the risks to your passwords: malware stealing your files containing the wallet, you accidentally publishing your files, leaving the unlocked laptop unattended etc.) |