From 218f11377f8cb821f3daf1fc057db926f371255d Mon Sep 17 00:00:00 2001 From: mxmehl Date: Mon, 21 Feb 2022 15:57:52 +0100 Subject: [PATCH] make unpend mail unread --- astroid/scripts/pending.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astroid/scripts/pending.sh b/astroid/scripts/pending.sh index ebd5201..0964de5 100755 --- a/astroid/scripts/pending.sh +++ b/astroid/scripts/pending.sh @@ -52,9 +52,9 @@ if [[ "$CURDATE" != "$LASTDATE" ]]; then # if new pending days more than 1 if [[ $day -ge 1 ]]; then notmuch tag -"$tag" +"${BASETAG}${day}" -- tag:"$tag" - # otherwise, delete pending tag and set unpending tag + # otherwise, delete pending tag and set unpending+unread tag else - notmuch tag -"$tag" +"$UNPENDTAG" -- tag:"$tag" + notmuch tag -"$tag" +"$UNPENDTAG" +unread -- tag:"$tag" fi done