From: Frantisek Hrbata Date: Sun, 27 Dec 2020 17:53:48 +0000 (+0100) Subject: mrlib: add Reply-To header to mbox for MR description and patches X-Git-Tag: v0.3~1 X-Git-Url: http://www.hrbata.com/gitweb/?a=commitdiff_plain;h=bfe2b11ffa10d12bdc1c89e7c1232dbb5770cd57;p=gimrr.git mrlib: add Reply-To header to mbox for MR description and patches Signed-off-by: Frantisek Hrbata --- diff --git a/mrlib.py b/mrlib.py index a1ed198..f7a6c5d 100755 --- a/mrlib.py +++ b/mrlib.py @@ -494,6 +494,7 @@ def format_patch(mr, mrtags, fd): cover = """{} Message-ID: <{}.{}@localhost> +Reply-To: {} <{}> From: {} <{}> Subject: [MR] {} Date: {} @@ -502,7 +503,7 @@ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit {} -""".format(from_line, mr, rev_zero, aname, aemail, subj, date, desc) +""".format(from_line, mr, rev_zero, aname, aemail, aname, aemail, subj, date, desc) fd.write(cover.encode()) rv, out, err = run(["git", "--no-pager", "format-patch", "--stdout", @@ -515,6 +516,7 @@ Content-Transfer-Encoding: 8bit rev = line.split(None, 2)[1].decode() fd.write("Message-ID: <{}.{}@localhost>\n".format(mr, rev).encode()) fd.write("In-Reply-To: <{}.{}@localhost>\n".format(mr, rev_zero).encode()) + fd.write("Reply-To: {} <{}>\n".format(aname, aemail).encode()) else: fd.write(line + b"\n")