From d6a93cae39f0cf2c1d9d61179a9066cd1e7c3508 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karl=20Hasselstr=5C=F6m?= Date: Fri, 17 Feb 2006 21:31:44 +0000 Subject: [PATCH] Use --refid option even when sending a cover mail MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit StGIT used to just ignore the --refid option when sending a cover mail. With this patch, it will send the cover mail as a reply to the mail identified by the refid, and the patch emails as replies to the cover mail as usual. Signed-off-by: Karl Hasselström --- stgit/commands/mail.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py index b3b7b49..975f8c9 100644 --- a/stgit/commands/mail.py +++ b/stgit/commands/mail.py @@ -199,6 +199,9 @@ def __build_cover(tmpl, total_nr, msg_id, options): headers_end = __build_address_headers(options) headers_end += 'Message-Id: %s\n' % msg_id + if options.refid: + headers_end += "In-Reply-To: %s\n" % options.refid + headers_end += "References: %s\n" % options.refid if options.version: version_str = ' %s' % options.version -- 2.11.0