summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-18 16:58:56 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-18 16:58:56 +0000
commitdada008a5708b32814efea80ec069f02e273c1ea (patch)
tree3a56dc983fbc3279b9a15523dcff9a1146e11fa4 /pykolab
parenta232baceb19e6420eea75e56cb13e036a468afa3 (diff)
downloadpykolab-dada008a5708b32814efea80ec069f02e273c1ea.tar.gz
Do not require redirect as an extension
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/cli/sieve/cmd_refresh.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/pykolab/cli/sieve/cmd_refresh.py b/pykolab/cli/sieve/cmd_refresh.py
index f34c65c..a065ca9 100644
--- a/pykolab/cli/sieve/cmd_refresh.py
+++ b/pykolab/cli/sieve/cmd_refresh.py
@@ -188,11 +188,6 @@ def execute(*args, **kw):
else:
forward_uce = False
- print mgmt_script
-
- if forward_active:
- mgmt_required_extensions.append('redirect')
-
if dtf_active:
mgmt_required_extensions.append('fileinto')
@@ -221,11 +216,9 @@ def execute(*args, **kw):
if sdf_filter:
mgmt_script.addfilter('spam_delivery_folder', [("X-Spam-Status", ":matches", "Yes,*")], [("fileinto", "INBOX/Spam"), ("stop")])
- #if dtf_active:
-
- print mgmt_script.__str__()
+ mgmt_script = mgmt_script.__str__()
- result = sieveclient.putscript("MANAGEMENT", mgmt_script.__str__())
+ result = sieveclient.putscript("MANAGEMENT", mgmt_script)
if not result:
print "Putting in script MANAGEMENT failed...?"