Linux maintainer tooling and workflows
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Cc: tools@linux.kernel.org, users@linux.kernel.org
Subject: [PATCH] WIP: pw-review: Skip already acked messages
Date: Tue,  1 Jun 2021 18:42:31 -0500	[thread overview]
Message-ID: <20210601234231.1345022-1-robh@kernel.org> (raw)

Signed-off-by: Rob Herring <robh@kernel.org>
---
 pw-review | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pw-review b/pw-review
index b0f4173810a7..0105c2af17ce 100755
--- a/pw-review
+++ b/pw-review
@@ -73,6 +73,11 @@ open_mail_msg() {
 	local msgid="$(sed -e 's/<\(.*\)>/\1/' <<< $1)"
 	b4 mbox -p ${LORE_MAILLIST} -o "${LORE_MBOX_PATH}" "$msgid" 2> /dev/null
 
+	if mboxgrep -m mbox -H -i -G "message-id:\s*<$msgid>" "${LORE_MBOX_PATH}/${msgid}.mbx" | grep -q -E "^(Acked|Reviewed)-by: Rob Herring" - 2> /dev/null ; then
+		echo "Already Acked..."
+		return
+	fi
+
 	# mutt doesn't handle these correctly
 	sed -i -e '/^To:\sunlisted-recipients.*/d' "${LORE_MBOX_PATH}/${msgid}.mbx"
 
-- 
2.27.0


             reply	other threads:[~2021-06-01 23:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01 23:42 Rob Herring [this message]
2021-06-01 23:44 ` [PATCH] WIP: pw-review: Skip already acked messages Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210601234231.1345022-1-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=konstantin@linuxfoundation.org \
    --cc=tools@linux.kernel.org \
    --cc=users@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox