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