Let apps send email through the owner's own mail provider (#26)
This commit is contained in:
1 parent
c7036c04d5
commit
7b6851c023
146 files changed
+737
-179
No files matched your search
@@ -43,6 +43,12 @@ for p in x.get("parameters") or []:
|
||||
env[p["key"]] = GEN[p["generate"]]()
|
||||
else:
|
||||
env[p["key"]] = str(p.get("default", ""))
|
||||
# like Cottage's servers: <KEY>_IS_<CHOICE>=true for the selected choice only,
|
||||
# and <KEY>_IS_EMPTY=true for an empty parameter
|
||||
if p.get("type") == "choice" and env[p["key"]]:
|
||||
env[f'{p["key"]}_IS_{env[p["key"]].upper()}'] = "true"
|
||||
if env[p["key"]] == "":
|
||||
env[f'{p["key"]}_IS_EMPTY'] = "true"
|
||||
with open(os.path.join(work, "env"), "w") as f:
|
||||
for k, v in env.items():
|
||||
f.write(f"{k}={json.dumps(v)}\n")
|
||||
|
||||
Reference in new issue
Block a user