1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Fix the user sieve script generation

This commit is contained in:
kaiyou 2018-09-27 08:18:03 +02:00
parent 4d25083847
commit ca6c0bc8fd

View File

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