git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Use --refid option even when sending a cover mail

From
Karl Hasselström <kha@treskal.com>
Date
Feb 17, 2006, 02:07 UTC
Message-ID
<20060217020727.12978.2049.stgit@backpacker.hemma.treskal.com>

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 <kha@treskal.com>
---
 stgit/commands/mail.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
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
 
     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
Message 1 of 1 in “Use --refid option even when sending a cover mail”
  1. Use --refid option even when sending a cover mailKarl Hasselström, Feb 17, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.