mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-12-01 19:06:45 +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)
|
""".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
|
||||||
|
|
Loading…
Reference in a new issue