|
|
@ -86,10 +86,10 @@ def user(localpart, domain_name, password, hash_scheme=None):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@mailu.command()
|
|
|
|
@mailu.command()
|
|
|
|
@click.option('-n', '--domain_name')
|
|
|
|
@click.option('-n', '--domain-name')
|
|
|
|
@click.option('-u', '--max_users')
|
|
|
|
@click.option('-u', '--max-users')
|
|
|
|
@click.option('-a', '--max_aliases')
|
|
|
|
@click.option('-a', '--max-aliases')
|
|
|
|
@click.option('-q', '--max_quota_bytes')
|
|
|
|
@click.option('-q', '--max-quota-bytes')
|
|
|
|
@flask_cli.with_appcontext
|
|
|
|
@flask_cli.with_appcontext
|
|
|
|
def domain(domain_name, max_users=-1, max_aliases=-1, max_quota_bytes=0):
|
|
|
|
def domain(domain_name, max_users=-1, max_aliases=-1, max_quota_bytes=0):
|
|
|
|
domain = models.Domain.query.get(domain_name)
|
|
|
|
domain = models.Domain.query.get(domain_name)
|
|
|
@ -126,7 +126,7 @@ def user_import(localpart, domain_name, password_hash, hash_scheme = None):
|
|
|
|
|
|
|
|
|
|
|
|
@mailu.command()
|
|
|
|
@mailu.command()
|
|
|
|
@click.option('-v', '--verbose')
|
|
|
|
@click.option('-v', '--verbose')
|
|
|
|
@click.option('-d', '--delete_objects')
|
|
|
|
@click.option('-d', '--delete-objects')
|
|
|
|
@flask_cli.with_appcontext
|
|
|
|
@flask_cli.with_appcontext
|
|
|
|
def config_update(verbose=False, delete_objects=False):
|
|
|
|
def config_update(verbose=False, delete_objects=False):
|
|
|
|
"""sync configuration with data from YAML-formatted stdin"""
|
|
|
|
"""sync configuration with data from YAML-formatted stdin"""
|
|
|
|