|
|
|
@ -19,7 +19,7 @@ diff1 = diff(old_text, relays, syntax='symmetric')
|
|
|
|
|
|
|
|
|
|
status = """From: relay status <relaystatus@encryptionin.space>
|
|
|
|
|
To: relaystatus@lists.encryptionin.space
|
|
|
|
|
Subject: Relay Status """ + datetime.datetime.now(datetime.utc).strftime('%Y-%m-%d %H') + """\n\n"""
|
|
|
|
|
Subject: Relay Status """ + datetime.datetime.now(datetime.timezone.utc).strftime('%Y-%m-%d %H') + """\n\n"""
|
|
|
|
|
|
|
|
|
|
for new_relay in diff1[jd.insert]:
|
|
|
|
|
exit = "no"
|
|
|
|
@ -41,7 +41,7 @@ with open(old_file, "w") as output:
|
|
|
|
|
output.write(r.text)
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
smtp = smptlib.SMTP('localhost')
|
|
|
|
|
smtp = smtplib.SMTP('localhost')
|
|
|
|
|
smtp.sendmail('relaystatus@encryptionin.space', ['relaystatus@lists.encryptionin.space'], status)
|
|
|
|
|
except SMTPException:
|
|
|
|
|
print("couldn't send")
|
|
|
|
|