summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/cmd_list_mailbox_metadata.py
diff options
context:
space:
mode:
authorTimotheus Pokorra (TBits.net) <tp@tbits.net>2013-10-16 11:56:50 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-10-16 11:56:50 +0200
commit05f6bf8d7ef033b70f9f9eb7fbccaba107b327e2 (patch)
tree004d2daab8ab2fd626e0b5284bdbb41b29c22f8f /pykolab/cli/cmd_list_mailbox_metadata.py
parentc4a7765129a45f0c1e3ba32e53990270c129efe6 (diff)
downloadpykolab-05f6bf8d7ef033b70f9f9eb7fbccaba107b327e2.tar.gz
Properly encode output so it can be piped and redirected (#2254)
Diffstat (limited to 'pykolab/cli/cmd_list_mailbox_metadata.py')
-rw-r--r--pykolab/cli/cmd_list_mailbox_metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/cli/cmd_list_mailbox_metadata.py b/pykolab/cli/cmd_list_mailbox_metadata.py
index a07420d..ac98283 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
+ print "Folder", folder.encode('utf-8')
metadata = imap.get_metadata(folder)