|
|
@ -122,7 +122,7 @@ def dovecot_quota(ns, user_email):
|
|
|
|
def dovecot_sieve(script, user_email):
|
|
|
|
def dovecot_sieve(script, user_email):
|
|
|
|
user = models.User.query.get(user_email) or flask.abort(404)
|
|
|
|
user = models.User.query.get(user_email) or flask.abort(404)
|
|
|
|
if script == "default":
|
|
|
|
if script == "default":
|
|
|
|
return flask.jsonify(flask.render_template("default.sieve"))
|
|
|
|
return flask.jsonify(flask.render_template("default.sieve", user=user))
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
flask.abort(404)
|
|
|
|
flask.abort(404)
|
|
|
|
|
|
|
|
|
|
|
|