mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
Fix the user sieve script generation
This commit is contained in:
parent
4d25083847
commit
ca6c0bc8fd
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user