summaryrefslogtreecommitdiffstats
path: root/pykolab/cli
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-06-09 16:50:13 +0200
commit919a49642431156183b5f6d7d2e6c9ea8c97793b (patch)
tree4daabb8192746706728f3fc0ceda7c22b2c1f06d /pykolab/cli
parent8678e417a9cdb7c65c6ebc0c70ab65b79475af68 (diff)
downloadpykolab-919a49642431156183b5f6d7d2e6c9ea8c97793b.tar.gz
LSUB with a pattern does not return the expected results at all
Diffstat (limited to 'pykolab/cli')
-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)