Commit 58e86fc5 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Set Message-ID according to RFC2822

Signed-off-by: Thomas Schneider's avatarThomas Schneider <>
parent 08c93906
......@@ -83,7 +83,7 @@ class MailManager:
msg["From"] = self.from_addr
msg["To"] = to_addr
msg["Subject"] = subject
msg["Message-ID"] = "{}@{}".format(uuid4(), getfqdn())
msg["Message-ID"] = "<{}@{}>".format(uuid4(), getfqdn())
msg.attach(MIMEText(content, _charset="utf-8"))
if appendix is not None:
for name, file_like in appendix:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment