summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-08-09 13:38:37 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-08-09 13:38:37 +0100
commitb5746f0301982bd1b5efaf5027fae9c366765636 (patch)
tree1d7bdd4628a0898d20d0e40af13b4ab557b55f32 /pykolab
parent2cf945f17f2001f37c71d1fb8fdba80a79457d5f (diff)
downloadpykolab-b5746f0301982bd1b5efaf5027fae9c366765636.tar.gz
Correct the selection of the folder for list-messages
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/cli/cmd_list_messages.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pykolab/cli/cmd_list_messages.py b/pykolab/cli/cmd_list_messages.py
index 2016020..716cdd3 100644
--- a/pykolab/cli/cmd_list_messages.py
+++ b/pykolab/cli/cmd_list_messages.py
@@ -23,6 +23,7 @@ import commands
import pykolab
+from pykolab import imap_utf7
from pykolab.imap import IMAP
from pykolab.translate import _
@@ -60,7 +61,7 @@ def execute(*args, **kw):
imap = IMAP()
imap.connect()
- _folder = imap.lm(folder)
+ _folder = imap.lm(imap_utf7.encode(folder))
if _folder == None or _folder == []:
log.error(_("No such folder"))
@@ -68,7 +69,7 @@ def execute(*args, **kw):
imap.set_acl(folder, 'cyrus-admin', 'lrs')
- imap.select(folder)
+ imap.select(imap_utf7.encode(folder))
if conf.list_deleted:
typ, data = imap.search(None, 'ALL')
@@ -94,3 +95,5 @@ def execute(*args, **kw):
print num
else:
print num
+
+ imap.set_acl(folder, 'cyrus-admin', '')