~edwargix/git.sr.ht

4674c677caba8b9ba098400e8d08cf29d1d464fd — Drew DeVault 6 years ago e9aa629
Add Reply-to header to outgoing patchset emails
1 files changed, 2 insertions(+), 0 deletions(-)

M gitsrht/blueprints/email.py
M gitsrht/blueprints/email.py => gitsrht/blueprints/email.py +2 -0
@@ 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: