diff --git a/core/admin/mailu/internal/views/dovecot.py b/core/admin/mailu/internal/views/dovecot.py index 7aeeeb6b..2cb2d526 100644 --- a/core/admin/mailu/internal/views/dovecot.py +++ b/core/admin/mailu/internal/views/dovecot.py @@ -27,7 +27,7 @@ def dovecot_userdb_dict_list(): @internal.route("/dovecot/userdb/") def dovecot_userdb_dict(user_email): - quota = models.User.query.filter(models.User.email==email).with_entities(models.User.quota_bytes).one_or_none() or flask.abort(404) + quota = models.User.query.filter(models.User.email==user_email).with_entities(models.User.quota_bytes).one_or_none() or flask.abort(404) return flask.jsonify({ "quota_rule": "*:bytes="+quota[0] })