diff --git a/app/email_handler.py b/app/email_handler.py index 93f3f0e..470d4d2 100644 --- a/app/email_handler.py +++ b/app/email_handler.py @@ -1024,7 +1024,7 @@ def handle_reply(envelope, msg: Message, rcpt_to: str) -> (bool, str): # reply_email must end with EMAIL_DOMAIN or a domain that can be used as reverse alias domain if not reply_email.endswith(EMAIL_DOMAIN): sl_domain: SLDomain = SLDomain.get_by(domain=reply_domain) - if sl_domain is None or not sl_domain.use_as_reverse_alias: + if sl_domain is None: LOG.w(f"Reply email {reply_email} has wrong domain") return False, status.E501 diff --git a/app/static/js/index.js b/app/static/js/index.js index 3a55731..0fbc362 100644 --- a/app/static/js/index.js +++ b/app/static/js/index.js @@ -256,17 +256,27 @@ new Vue({ el: '#filter-app', delimiters: ["[[", "]]"], // necessary to avoid conflict with jinja data: { - showFilter: false + showFilter: false, + showStats: false }, methods: { async toggleFilter() { let that = this; that.showFilter = !that.showFilter; store.set('showFilter', that.showFilter); + }, + + async toggleStats() { + let that = this; + that.showStats = !that.showStats; + store.set('showStats', that.showStats); } }, async mounted() { if (store.get("showFilter")) this.showFilter = true; + + if (store.get("showStats")) + this.showStats = true; } }); diff --git a/app/templates/dashboard/index.html b/app/templates/dashboard/index.html index a3e24df..82f7ad6 100644 --- a/app/templates/dashboard/index.html +++ b/app/templates/dashboard/index.html @@ -31,63 +31,11 @@ {% block title %}Alias{% endblock %} {% block default_content %} - -