summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-04-23 12:02:15 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-04-23 12:02:39 +0200
commitf7661c1904a3b2ca366cb31e690adabaf75950ed (patch)
tree1033139a90e8ce731338884bb97e62d58b764972
parenta532fecc018609420e5cb8c2cf0e2edc5a1986a0 (diff)
downloadpykolab-f7661c1904a3b2ca366cb31e690adabaf75950ed.tar.gz
LSUB with a pattern does not return the expected results at all
-rw-r--r--pykolab/cli/cmd_remove_user_subscription.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pykolab/cli/cmd_remove_user_subscription.py b/pykolab/cli/cmd_remove_user_subscription.py
index 17ff818..a09bb31 100644
--- a/pykolab/cli/cmd_remove_user_subscription.py
+++ b/pykolab/cli/cmd_remove_user_subscription.py
@@ -74,7 +74,7 @@ def execute(*args, **kw):
sys.exit(1)
_folders = imap.lm(folder_pattern)
- _subscribed_folders = imap.lsub(folder_pattern)
+ _subscribed_folders = imap.lsub()
unsubscribed_folders = []
for _folder in _folders:
@@ -89,8 +89,8 @@ def execute(*args, **kw):
print "\n".join(unsubscribed_folders)
else:
- print >> sys.stderr, _("User %s not be unsubscribed from any folders.") % (
+ print >> sys.stderr, _("User %s was not unsubscribed from any folders.") % (
user
)
- sys.exit(1) \ No newline at end of file
+ sys.exit(1)