Merge branch 'master' into coronaZeit

This commit is contained in:
marko
2021-10-30 13:27:27 +02:00
325 changed files with 50529 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import json
import argparse
import yaml
from datetime import datetime
import certifi
def get_yaml(f):
'''Extracts the yamlHeader from a Markdown file'''
@@ -87,6 +88,9 @@ if __name__=="__main__":
# Create a secure SSL context
context = ssl.create_default_context()
# @todo This is a very bad hack, because the cert checking doesn't wor anymore
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
with smtplib.SMTP_SSL(config['smtp']['serverAddress'], config['smtp']['serverPort'], context=context) as server:
server.login(config['smtp']['login'], config['smtp']['password'])
for receiverEmail in receiverEmails: