Bug 439939

Summary: The managesieve interface doesn't work anymore manymore after KMail runs for a while
Product: [Applications] kmail2 Reporter: Tobias Leupold <tl>
Component: sieveAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: oleksandr
Priority: NOR    
Version: 5.19.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tobias Leupold 2021-07-16 10:26:27 UTC
Editing sieve scripts via "Settings" → "Manage sieve scripts" stops working after KMail runs for a while (some days):

The dialog appears, but the only thing that happens is that the "busy" indicator besides the respective account spins. Nothing happens. Also, no request for a login is logged on the server side.

Restarting Akonadi (akonadictl restart) doesn't help.

When closing KMail and starting it again, the dialog works again and lists all scripts.

But: After some time (days?), the dialog becomes unfunctional again. This always happens, at least since 5.20.5/20.12.2, and still with 5.22.2/20.12.3.
Comment 1 Oleksandr Natalenko 2022-01-06 10:45:51 UTC
Happened to me as well.

Dovecot says the following:

```
auth: plain(?,1.2.3.4,<xxx>): Username character disallowed by auth_username_chars: 0xNN (username: XXXXXXXXX)
managesieve-login: Disconnected: Aborted login by logging out (auth failed, 1 attempts in 2 secs): user=<XXXXXXXXX>, method=PLAIN, rip=1.2.3.4, lip=5.6.7.8, TLS, session=<xxx>
```

Note the username. I've replaced it with XXXXXXXXX because dovecot log shows my password there instead of username. I think KMail sends it this way (erroneously).

Restarting KMail helps, yes.