Changeset View
Changeset View
Standalone View
Standalone View
pykolab/cli/cmd_list_quota.py
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
def execute(*args, **kw): | def execute(*args, **kw): | ||||
""" | """ | ||||
List quota for a mailbox | List quota for a mailbox | ||||
""" | """ | ||||
try: | try: | ||||
quota_folder = conf.cli_args.pop(0) | quota_folder = conf.cli_args.pop(0) | ||||
except IndexError, e: | except IndexError: | ||||
quota_folder = '*' | quota_folder = '*' | ||||
imap = IMAP() | imap = IMAP() | ||||
if not conf.connect_server == None: | if not conf.connect_server == None: | ||||
imap.connect(server=conf.connect_server) | imap.connect(server=conf.connect_server) | ||||
else: | else: | ||||
imap.connect() | imap.connect() | ||||
Show All 40 Lines |