summaryrefslogtreecommitdiffstats
path: root/pykolab/cli
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-02-05 02:41:22 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2015-02-05 02:41:22 +0100
commite40632b31347e5c25a2fdae2cbfec91eb521b09a (patch)
treeacec8dd6177a5135a8eef6384921f9b6a98acfc6 /pykolab/cli
parentad96cdc0f3c258e37950bb655eaa7419f7560d56 (diff)
downloadpykolab-e40632b31347e5c25a2fdae2cbfec91eb521b09a.tar.gz
Fix printing of quota update status (#4496)
Diffstat (limited to 'pykolab/cli')
-rw-r--r--pykolab/cli/cmd_set_quota.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pykolab/cli/cmd_set_quota.py b/pykolab/cli/cmd_set_quota.py
index aa0389f..2fa9ba3 100644
--- a/pykolab/cli/cmd_set_quota.py
+++ b/pykolab/cli/cmd_set_quota.py
@@ -17,6 +17,8 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
+import sys
+
import commands
import pykolab
@@ -58,7 +60,7 @@ def execute(*args, **kw):
print >> sys.stderr, _("No such folder %r") % (folder)
sys.exit(1)
- for _folder in imap.lm(folder):
+ for _folder in imap.lm(imap.folder_utf7(folder)):
imap.set_quota(_folder, quota)
- print >> sys.stdout, "Quota for folder '%s' set to %d" % (_folder, quota)
+ print >> sys.stdout, "Quota for folder '%s' set to %d" % (_folder, int(quota))