Bug 478474 - Kmail ask for sieve passworts on every start
Summary: Kmail ask for sieve passworts on every start
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: sieve (show other bugs)
Version: 5.240.81
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-13 14:13 UTC by lod
Modified: 2024-03-15 18:57 UTC (History)
3 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 lod 2023-12-13 14:13:42 UTC
STEPS TO REPRODUCE
1. add new imap account
2. set Server supports Sieve
3. set Reuse host login configuration
4. restart kmail

OBSERVED RESULT
prompt "Sieve Authentication Details" opens and asks for sieve password. Even if you use "Remember password" it will ask for it on the next start.

EXPECTED RESULT
It should use the stored "host login" or save the password

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux  6.6.6-arch1-1
(available in About System)
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Matthias Fehring 2024-03-14 09:57:29 UTC
Same here with kmail2 6.0.0 (24.02.0) on Plasma 6.0.1 and KDE Frameworks 6.0.0.

Log shows the following lines for every account:

We have an error during reading password  "Entry not found"
org.kde.pim.kmail: An error occurred while reading password:  "Entry not found"
Comment 2 Matthias Fehring 2024-03-14 10:11:25 UTC
I also tried to disable “Reuse host login configuration“. No matter if I use “IMAP user and password“ or give “User name and password“ in the Sieve config, it asks for the password when trying to connect to the Sieve server.
Comment 3 Marc Joliet 2024-03-15 11:39:29 UTC
This hit me, too.  The key difference to the reporter is that I see this with a pre-existing account, and only *after* upgrading to Plasma 6 and Gear 24.02 (OpenSuse TW).  The full entry in my user journal is:

org.kde.pim.kmanagersieve: "session1" No job for reporting this error message! "Authorization failed, Authentifizierung fehlgeschlagen.\nHöchstwahrscheinlich ist das Passwort falsch.\nDie Serverantwort lautet:\nNO \"Authentication fa
iled.\" authentication not supported" host "[REDACTED]" error -1

(The German bits are: "Authentication failed", "Most likely the password is wrong", and "The server response is:".  This is most likely from me cancelling or leaving the password field empty out of frustration.)

Double-checking, I also have several log entries that looks like this:

org.kde.pim.kmanagersieve: "session1" No job for reporting this error message! "Authorization failed, SASL(0): successful result:  authentication not supported" host "barry" error -1

I tried things out and those log entries come from cancelling the password dialog (I also get an error prompt showing it).

I tried two things to get rid of the password prompts:

1.) Simply turn off sieve on the offending IMAP server.
2.) First uncheck "Reuse host login configuration", save settings, restart KMail(?), *then* turn off sieve.

Of those two only the second option actually got rid of the password prompts.  I also deleted the sieve password from KWallet.  Even so, I just had an instance of starting KMail where it asked me for the password again.  Then I quit and started it again, and this time no password prompt :-/ .  So far that's one third of launches showing a password prompt.
Comment 4 software 2024-03-15 18:57:37 UTC
(In reply to Marc Joliet from comment #3)
> This hit me, too.  The key difference to the reporter is that I see this
> with a pre-existing account, and only *after* upgrading to Plasma 6 and Gear
> 24.02 (OpenSuse TW).  The full entry in my user journal is:

Exactly same behaviour here on openSUSE Tumbleweed after update to plasma 6.