tools.linux.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] WIP: pw-review: Skip already acked messages
@ 2021-06-01 23:42 Rob Herring
  2021-06-01 23:44 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring @ 2021-06-01 23:42 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: tools, users

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] WIP: pw-review: Skip already acked messages
  2021-06-01 23:42 [PATCH] WIP: pw-review: Skip already acked messages Rob Herring
@ 2021-06-01 23:44 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2021-06-01 23:44 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: tools, users

On Tue, Jun 1, 2021 at 6:42 PM Rob Herring <robh@kernel.org> wrote:
>
> Signed-off-by: Rob Herring <robh@kernel.org>

Time to quit for the day. Ignore this if that's not obvious...

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-01 23:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 23:42 [PATCH] WIP: pw-review: Skip already acked messages Rob Herring
2021-06-01 23:44 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).