From 58e86fc51046bd26e8017f8454dc0e2998dc8c60 Mon Sep 17 00:00:00 2001 From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de> Date: Mon, 6 Mar 2017 01:11:22 +0100 Subject: [PATCH] Set Message-ID according to RFC2822 Signed-off-by: Thomas Schneider <thomas@fsmpi.rwth-aachen.de> --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index d68b72c..44d5b04 100644 --- a/utils.py +++ b/utils.py @@ -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: -- GitLab