summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/cmd_list_quota.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-04 15:34:29 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-04 15:34:55 +0000
commitef81656a39eca59f4758c7e8432418b2a61931fb (patch)
treef211e8414a5a3c5bd69b6e0fd6b0e8462568c905 /pykolab/cli/cmd_list_quota.py
parent5cce5af0cfed978b8eb4560b761123217c854878 (diff)
downloadpykolab-ef81656a39eca59f4758c7e8432418b2a61931fb.tar.gz
Let the output include what folder the output is for
Diffstat (limited to 'pykolab/cli/cmd_list_quota.py')
-rw-r--r--pykolab/cli/cmd_list_quota.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/cli/cmd_list_quota.py b/pykolab/cli/cmd_list_quota.py
index c81725a..6aba95b 100644
--- a/pykolab/cli/cmd_list_quota.py
+++ b/pykolab/cli/cmd_list_quota.py
@@ -54,6 +54,7 @@ def execute(*args, **kw):
for quota_folder in quota_folders:
try:
(used, quota) = imap.get_quota(quota_folder)
+ print "Folder: %s" % (quota_folder)
if not used == None and not quota == None:
if quota == 0:
print >> sys.stderr, _("The quota for folder %s is set to literally allow 0KB of storage.") % (quota_folder)
@@ -66,6 +67,7 @@ def execute(*args, **kw):
except:
try:
(quota_root, used, quota) = imap.get_quota_root(quota_folder)
+ print "Folder: %s" % (quota_folder)
if not quota_root == None and not used == None and not quota == None:
if quota == 0:
print >> sys.stderr, _("The quota for folder %s is set to literally allow 0KB of storage.") % (quota_folder)
@@ -76,5 +78,6 @@ def execute(*args, **kw):
else:
print "No quota"
except:
+ print "Folder: %s" % (quota_folder)
print "No quota root"