missing newlines in /etc/aliases

This commit is contained in:
b3yond 2018-10-07 23:01:14 +02:00
parent 0449d892a3
commit 30de2196ac

2
db.py
View file

@ -252,7 +252,7 @@ u\d\d?"""
else:
uid = json['uid']
with open("/etc/aliases", "a+") as f:
f.write(city + ": " + config["mail"]["mbox_user"])
f.write(city + ": " + config["mail"]["mbox_user"] + "\n")
self.execute("INSERT INTO email (user_id, email) VALUES(?, ?);",
(uid, json['email']))
self.execute("""INSERT INTO telegram_accounts (user_id, apikey,