From d7de7bd7b8aaae755fe74578d2011cd8fcb5e318 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 18 Jun 2024 14:29:10 +0200 Subject: [PATCH] add yet another msgid trailer Signed-off-by: Paolo Bonzini --- patchew-cli | 3 +++ 1 file changed, 3 insertions(+) diff --git a/patchew-cli b/patchew-cli index 91ff883..2318921 100755 --- a/patchew-cli +++ b/patchew-cli @@ -495,6 +495,7 @@ class ProjectCommand(SubCommand): cwd=clone, ).decode() msgid_trailer = 'Message-Id:'.casefold() + msgid_link_trailer = 'Link: https://patch.msgid.link/'.casefold() lore_link_trailer = 'Link: https://lore.kernel.org/r/'.casefold() msgids = [] for x in output.splitlines(): @@ -502,6 +503,8 @@ class ProjectCommand(SubCommand): header = x.casefold() if header.startswith(msgid_trailer): msgids.append(x[11:].strip()) + elif header.startswith(msgid_link_trailer): + msgids.append('%s' % x[31:].rstrip()) elif header.startswith(lore_link_trailer): msgids.append('%s' % x[32:].rstrip()) logging.debug("message ids: \n%s" % "\n".join([" " + x for x in msgids]))