272 if ctx.argc < 4: |
272 if ctx.argc < 4: |
273 details = None |
273 details = None |
274 else: |
274 else: |
275 details = ctx.args[3].lower() |
275 details = ctx.args[3].lower() |
276 if details not in ('accounts', 'aliasdomains', 'aliases', 'full', |
276 if details not in ('accounts', 'aliasdomains', 'aliases', 'full', |
277 'relocated'): |
277 'relocated', 'catchall'): |
278 usage(INVALID_ARGUMENT, _(u"Invalid argument: '%s'") % details, |
278 usage(INVALID_ARGUMENT, _(u"Invalid argument: '%s'") % details, |
279 ctx.scmd) |
279 ctx.scmd) |
280 try: |
280 try: |
281 info = ctx.hdlr.domain_info(ctx.args[2].lower(), details) |
281 info = ctx.hdlr.domain_info(ctx.args[2].lower(), details) |
282 except VMMError, err: |
282 except VMMError, err: |
306 _print_list(info[1], _(u'alias domains')) |
306 _print_list(info[1], _(u'alias domains')) |
307 elif details == u'aliases': |
307 elif details == u'aliases': |
308 _print_list(info[1], _(u'aliases')) |
308 _print_list(info[1], _(u'aliases')) |
309 elif details == u'relocated': |
309 elif details == u'relocated': |
310 _print_list(info[1], _(u'relocated users')) |
310 _print_list(info[1], _(u'relocated users')) |
|
311 elif details == u'catchall': |
|
312 _print_list(info[1], _(u'catch-all destinations')) |
311 else: |
313 else: |
312 _print_list(info[1], _(u'alias domains')) |
314 _print_list(info[1], _(u'alias domains')) |
313 _print_list(info[2], _(u'accounts')) |
315 _print_list(info[2], _(u'accounts')) |
314 _print_list(info[3], _(u'aliases')) |
316 _print_list(info[3], _(u'aliases')) |
315 _print_list(info[4], _(u'relocated users')) |
317 _print_list(info[4], _(u'relocated users')) |
|
318 _print_list(info[5], _(u'catch-all destinations')) |
316 |
319 |
317 |
320 |
318 def domain_quota(ctx): |
321 def domain_quota(ctx): |
319 """update the quota limit of the specified domain""" |
322 """update the quota limit of the specified domain""" |
320 if ctx.argc < 3: |
323 if ctx.argc < 3: |