# HG changeset patch # User Pascal Volk # Date 1320511279 0 # Node ID 7847f949d0a213848024acf5b9c2e6f7a7221591 # Parent b15960e9c53c1c798c2ad7ff35a618c78341b9bd VMM/cli/subcommands: Small improvement in domain_add(). Inform the admin, when the postmaster account will be auto-created. diff -r b15960e9c53c -r 7847f949d0a2 VirtualMailManager/cli/subcommands.py --- a/VirtualMailManager/cli/subcommands.py Sat Nov 05 15:43:23 2011 +0000 +++ b/VirtualMailManager/cli/subcommands.py Sat Nov 05 16:41:19 2011 +0000 @@ -214,12 +214,12 @@ ctx.hdlr.domain_add(ctx.args[2].lower()) else: ctx.hdlr.domain_add(ctx.args[2].lower(), ctx.args[3]) - if not ctx.cget('domain.auto_postmaster'): - return - ctx.scmd = 'useradd' - ctx.args = [prog, ctx.scmd, u'postmaster@' + ctx.args[2].lower()] - ctx.argc = 3 - user_add(ctx) + if ctx.cget('domain.auto_postmaster'): + w_std(_(u'Creating account for postmaster@%s') % ctx.args[2].lower()) + ctx.scmd = 'useradd' + ctx.args = [prog, ctx.scmd, u'postmaster@' + ctx.args[2].lower()] + ctx.argc = 3 + user_add(ctx) def domain_delete(ctx):