Fixed '{' parsing

This commit is contained in:
Illia Chub 2021-10-12 13:34:37 +03:00
parent 7c144332cf
commit 2f526c7bcd

View file

@ -110,7 +110,7 @@ def createUser():
""".format(request.headers.get("X-User"), hashedPassword) """.format(request.headers.get("X-User"), hashedPassword)
mailUserTemplate = """ mailUserTemplate = """
\"{0}@{2}\" = { \"{0}@{2}\" = {{
hashedPassword = hashedPassword =
\"{1}\"; \"{1}\";
catchAll = [ \"{2}\" ]; catchAll = [ \"{2}\" ];
@ -118,12 +118,12 @@ def createUser():
sieveScript = '' sieveScript = ''
require [\"fileinto\", \"mailbox\"]; require [\"fileinto\", \"mailbox\"];
if header :contains \"Chat-Version\" \"1.0\" if header :contains \"Chat-Version\" \"1.0\"
{ {{
fileinto :create \"DeltaChat\"; fileinto :create \"DeltaChat\";
stop; stop;
} }}
''; '';
};""".format(request.headers.get("X-User"), hashedPassword, request.headers.get("X-Domain")) }};""".format(request.headers.get("X-User"), hashedPassword, request.headers.get("X-Domain"))
for line in fileContent: for line in fileContent:
index += 1 index += 1