mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
Fixed '{' parsing
This commit is contained in:
parent
7c144332cf
commit
2f526c7bcd
8
main.py
8
main.py
|
@ -110,7 +110,7 @@ def createUser():
|
|||
""".format(request.headers.get("X-User"), hashedPassword)
|
||||
|
||||
mailUserTemplate = """
|
||||
\"{0}@{2}\" = {
|
||||
\"{0}@{2}\" = {{
|
||||
hashedPassword =
|
||||
\"{1}\";
|
||||
catchAll = [ \"{2}\" ];
|
||||
|
@ -118,12 +118,12 @@ def createUser():
|
|||
sieveScript = ''
|
||||
require [\"fileinto\", \"mailbox\"];
|
||||
if header :contains \"Chat-Version\" \"1.0\"
|
||||
{
|
||||
{{
|
||||
fileinto :create \"DeltaChat\";
|
||||
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:
|
||||
index += 1
|
||||
|
|
Loading…
Reference in a new issue