add Message-ID on mails

This commit is contained in:
Dam64 2018-04-27 01:17:18 +02:00 committed by GitHub
parent 1d3cd431eb
commit 9cefc7f701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1301,6 +1301,7 @@ class EMAIL(Notifier):
else:
msg = MIMEText(body, 'plain', 'utf-8')
msg['Message-ID'] = email.utils.make_msgid()
msg['Date'] = email.utils.formatdate(localtime=True)
msg['Subject'] = subject
msg['From'] = email.utils.formataddr((self.config['from_name'], self.config['from']))