Bug 407465

Summary: KMail 5.9.3 doesn't seem to set active sieve script
Product: [Applications] kmail2 Reporter: Hazel Victoria Campbell <wz>
Component: sieveAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel, wz
Priority: NOR    
Version: 5.9.3   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Hazel Victoria Campbell 2019-05-12 17:30:10 UTC
SUMMARY

KMail's sieve script editor seems fine, but it doesn't ever seem to activate the sieve scripts at all. It does put the active scripts in the USER script, which is great, but it never sends the managesieve SETACTIVE command.

I am using Dovecot 2.3.4.1. In the default dovecot configuration the active sieve script is stored as a symlink .dovecot.sieve -> sieve/USER.sieve, 
otherwise NO sieve scripts are active.

It is possible to work around this by connecting to the managesieve port, logging in, and doing SETACTIVE "USER" yourself, so it is not a problem with Dovecot.

STEPS TO REPRODUCE
1. Add an imap account in KMail with sieve enabled
2. Add a sieve script
3. Try to enable script

OBSERVED RESULT
No active sieve script: KMail lists all scripts as disabled and the symlink that
dovecot creates to indicate the active sieve script is missing.

EXPECTED RESULT
Kmail should list scripts as enabled and the symlink that dovecot creates
to indicate the active sieve script should be present.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Debian Buster
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.3

Managsieve protocol transcript (only the data KMail sent) (as you can see KMail sends no SETACTIVE command): 
PUTSCRIPT "newsletters" {159+}
require "fileinto";

#<From>: sales@dashvapes.com
if allof (header :contains "From" "sales@dashvapes.com")
{
    fileinto "Newsletters";
    stop;
}


PUTSCRIPT "USER" {270+}
# USER Management Script
#
# This script includes the various active sieve scripts
# it is AUTOMATICALLY GENERATED. DO NOT EDIT MANUALLY!
# 
# For more information, see http://wiki.kolab.org/KEP:14#USER
#

require ["include"];

include :personal "newsletters";
LISTSCRIPTS
PUTSCRIPT "USER" {270+}
# USER Management Script
#
# This script includes the various active sieve scripts
# it is AUTOMATICALLY GENERATED. DO NOT EDIT MANUALLY!
# 
# For more information, see http://wiki.kolab.org/KEP:14#USER
#

require ["include"];

include :personal "newsletters";
LISTSCRIPTS
Comment 1 Laurent Montel 2019-05-12 17:59:44 UTC
Fixed in 5.10.x