fix(projekt-matching): add Date and Message-ID headers to outgoing mail

This commit is contained in:
tlg
2026-07-09 15:06:55 +02:00
parent 79966e6e54
commit cf088f0bd3
2 changed files with 5 additions and 0 deletions

View File

@@ -51,3 +51,5 @@ def test_send_mail_starttls():
server.login.assert_called_once_with("u@x", "pw")
msg = server.send_message.call_args.args[0]
assert msg["Subject"] == "Subj" and msg["To"] == "to@x"
assert msg["Date"]
assert msg["Message-ID"].endswith("@destengs.com>")