summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/cli/cmd_list_mailbox_metadata.py2
-rw-r--r--pykolab/cli/cmd_list_mailboxes.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/cli/cmd_list_mailbox_metadata.py b/pykolab/cli/cmd_list_mailbox_metadata.py
index e0b54fa..76528f7 100644
--- a/pykolab/cli/cmd_list_mailbox_metadata.py
+++ b/pykolab/cli/cmd_list_mailbox_metadata.py
@@ -83,7 +83,7 @@ def execute(*args, **kw):
metadata = []
folders = imap.list_folders(folder)
for folder in folders:
- print "Folder", folder.encode('utf-8')
+ print "Folder", folder
metadata = imap.get_metadata(folder)
diff --git a/pykolab/cli/cmd_list_mailboxes.py b/pykolab/cli/cmd_list_mailboxes.py
index 8cb60cc..61dfb08 100644
--- a/pykolab/cli/cmd_list_mailboxes.py
+++ b/pykolab/cli/cmd_list_mailboxes.py
@@ -89,6 +89,6 @@ def execute(*args, **kw):
for folder in folders:
if not conf.raw:
- print imap_utf7.decode(folder).encode('utf-8')
+ print imap_utf7.decode(folder)
else:
print folder