Merge pull request #1286 from Dam64/patch-1

add Message-ID on mails
This commit is contained in:
JonnyWong16 2018-04-28 17:54:02 -07:00 committed by GitHub
commit ea1aba2c87
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']))