Skip to content
Snippets Groups Projects

Set Message-ID according to RFC2822

Merged Thomas Schneider requested to merge thomas/proto3:master into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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:
Loading