summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-01-28 01:32:34 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-01-28 01:32:34 +0000
commit2f765b856551925ad1ee317e85a6fc257874f956 (patch)
tree38d960612c6dbfe0adbb887481a0f965701c5988 /pykolab
parentdff2be70f952637d0ad0a5941ba5dabdd47b53f3 (diff)
downloadpykolab-2f765b856551925ad1ee317e85a6fc257874f956.tar.gz
Resolve redirect not being a terminal action - need stop on not keeping a copy (#1588)
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/cli/sieve/cmd_refresh.py1
-rw-r--r--pykolab/plugins/sievemgmt/__init__.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/cli/sieve/cmd_refresh.py b/pykolab/cli/sieve/cmd_refresh.py
index f672410..87af982 100644
--- a/pykolab/cli/sieve/cmd_refresh.py
+++ b/pykolab/cli/sieve/cmd_refresh.py
@@ -338,6 +338,7 @@ def execute(*args, **kw):
rule_name = 'forward'
forward_rules.append(("redirect", forward_addresses[-1]))
+ forward_rules.append(("stop"))
if forward_uce:
mgmt_script.addfilter(rule_name, ['true'], forward_rules)
diff --git a/pykolab/plugins/sievemgmt/__init__.py b/pykolab/plugins/sievemgmt/__init__.py
index df4720c..6395f2f 100644
--- a/pykolab/plugins/sievemgmt/__init__.py
+++ b/pykolab/plugins/sievemgmt/__init__.py
@@ -350,6 +350,7 @@ class KolabSievemgmt(object):
rule_name = 'forward'
forward_rules.append(("redirect", forward_addresses[-1]))
+ forward_rules.append(("stop"))
if forward_uce:
mgmt_script.addfilter(rule_name, ['true'], forward_rules)