|
|
@ -118,8 +118,13 @@ def dovecot_quota(ns, user_email):
|
|
|
|
return flask.jsonify(None)
|
|
|
|
return flask.jsonify(None)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@internal.route("/dovecot/sieve/name/default/<user_email>")
|
|
|
|
@internal.route("/dovecot/sieve/name/<script>/<user_email>")
|
|
|
|
def dovecot_sieve(script, user_email):
|
|
|
|
def dovecot_sieve_name(script, user_email):
|
|
|
|
|
|
|
|
return flask.jsonify(script)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@internal.route("/dovecot/sieve/data/default/<user_email>")
|
|
|
|
|
|
|
|
def dovecot_sieve_data(user_email):
|
|
|
|
user = models.User.query.get(user_email) or flask.abort(404)
|
|
|
|
user = models.User.query.get(user_email) or flask.abort(404)
|
|
|
|
return flask.jsonify(flask.render_template("default.sieve", user=user))
|
|
|
|
return flask.jsonify(flask.render_template("default.sieve", user=user))
|
|
|
|
|
|
|
|
|
|
|
|