From 4674c677caba8b9ba098400e8d08cf29d1d464fd Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 1 Nov 2019 11:26:34 -0400 Subject: [PATCH] Add Reply-to header to outgoing patchset emails --- gitsrht/blueprints/email.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitsrht/blueprints/email.py b/gitsrht/blueprints/email.py index d4fa57e..1959869 100644 --- a/gitsrht/blueprints/email.py +++ b/gitsrht/blueprints/email.py @@ -172,6 +172,8 @@ def prepare_patchset(repo, git_repo, cover_letter=None, extra_headers=False, for i, email in enumerate(emails): email["Message-ID"] = f"{msgid[0]}-{i}@{msgid[1]}" email["X-Mailer"] = "git.sr.ht" + email["Reply-to"] = (f"{current_user.canonical_name} " + + f"<{current_user.email}>") if i != 0: email["In-Reply-To"] = f"{msgid[0]}-{0}@{msgid[1]}" if to: -- 2.38.4