From ce9dc3a335be8b3fb148dcc4210bab69a79a10e1 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 17 Mar 2022 11:39:57 +0100 Subject: [PATCH] ghostwheel42's suggestion --- core/admin/mailu/internal/views/autoconfig.py | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/core/admin/mailu/internal/views/autoconfig.py b/core/admin/mailu/internal/views/autoconfig.py index 65271eeb..bf116f4b 100644 --- a/core/admin/mailu/internal/views/autoconfig.py +++ b/core/admin/mailu/internal/views/autoconfig.py @@ -8,15 +8,15 @@ import xmltodict def autoconfig_mozilla(): # https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat hostname = app.config['HOSTNAME'] - xml = f''' - - + xml = f''' + + %EMAILDOMAIN% Email Email - + {hostname} 993 SSL @@ -24,7 +24,7 @@ def autoconfig_mozilla(): password-cleartext - + {hostname} 465 SSL @@ -34,8 +34,8 @@ def autoconfig_mozilla(): true - -Configure your email client + +Configure your email client \r\n''' @@ -62,9 +62,9 @@ def autoconfig_microsoft(): if schema != 'http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a': return flask.abort(404) email = xml['Autodiscover']['Request']['EMailAddress'] - xml = f''' - - + xml = f''' + + email settings @@ -98,10 +98,10 @@ def autoconfig_apple(): # https://developer.apple.com/business/documentation/Configuration-Profile-Reference.pdf hostname = app.config['HOSTNAME'] sitename = app.config['SITENAME'] - xml = f''' - - + xml = f''' + + PayloadContent