def default_quota_get():
    if request.values.get('text'):
        return get_default_quota(env)
    else:
        return json_response({
            "default-quota": get_default_quota(env),
        })
def mail_users_add():
    quota = request.form.get('quota', get_default_quota(env))
    try:
        return add_mail_user(request.form.get('email', ''),
                             request.form.get('password', ''),
                             request.form.get('privileges', ''), quota, env)
    except ValueError as e:
        return (str(e), 400)