[email] Fix style issues

This commit is contained in:
maike 2020-07-06 15:16:28 +02:00 committed by dl6tom
parent 1aad0b30e1
commit bda5e1a133

View file

@ -36,11 +36,13 @@ def main():
'text': text, 'text': text,
'to': mail['To'].lower(), 'to': mail['To'].lower(),
'author': mail['From'].lower(), 'author': mail['From'].lower(),
'secret': Email.secret 'secret': Email.secret,
} }
# POST request mit API-key und JSON-body an /api/email/messages/: # POST request mit API-key und JSON-body an /api/email/messages/:
print("curl " print(
"curl "
"-X POST http://localhost/api/email/messages/ " "-X POST http://localhost/api/email/messages/ "
"-H 'Content-Type: application/json' " "-H 'Content-Type: application/json' "
"-d " + json.dumps(body)) "-d " + json.dumps(body)
)