Skip to contentSkip to conversation

WIP: pw-review: Skip already acked messages

PATCH In review Rob Herring 1 participant 2 messages Jun 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 WIP: pw-review: Skip already acked messages

---
 pw-review | 5 +++++
 1 file changed, 5 insertions(+)
pw-review +5 -0
index b0f4173810a7..0105c2af17ce 100755
@@ -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"
 
Signature · 1 line
2.27.0