Skip to content

Commit

Permalink
add yet another msgid trailer
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Jun 18, 2024
1 parent 831a92b commit d7de7bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions patchew-cli
Original file line number Diff line number Diff line change
Expand Up @@ -495,13 +495,16 @@ 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():
words = x.split()
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]))
Expand Down

0 comments on commit d7de7bd

Please sign in to comment.