WIP: pw-review: Skip already acked messages
PATCH 1/1 WIP: pw-review: Skip already acked messages
Signed-off-by Rob Herring <[email protected]>
--- pw-review | 5 +++++ 1 file changed, 5 insertions(+)
pw-review +5 -0
@@ -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
Quoted 2 lines · Rob Herring
Signed-off-by Rob Herring <[email protected]>
Time to quit for the day. Ignore this if that's not obvious...