Message ID | 20210601234231.1345022-1-robh@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | WIP: pw-review: Skip already acked messages | expand |
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...
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"
Signed-off-by: Rob Herring <robh@kernel.org> --- pw-review | 5 +++++ 1 file changed, 5 insertions(+)