From c6c444cfa71ef0b5e934664b35639a0b14be4051 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Wed, 16 Mar 2022 11:02:39 +0100 Subject: [PATCH] simplify --- core/admin/mailu/internal/views/autoconfig.py | 48 +++++++++---------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/core/admin/mailu/internal/views/autoconfig.py b/core/admin/mailu/internal/views/autoconfig.py index 9158f185..85d3dbb0 100644 --- a/core/admin/mailu/internal/views/autoconfig.py +++ b/core/admin/mailu/internal/views/autoconfig.py @@ -56,31 +56,29 @@ def autoconfig_microsoft(): hostname = app.config['HOSTNAME'] xml = f''' - - -email -settings - -IMAP -{hostname} -993 -on -off -on -on - - -SMTP -{hostname} -465 -on -off -on -on - - - -\r\n''' + + + email + settings + + IMAP + {hostname} + 993 + on + off + TLS + + + SMTP + {hostname} + 465 + on + off + TLS + + + +''' return flask.Response(xml, mimetype='text/xml', status=200) @internal.route("/autoconfig/apple")