make unpend mail unread

This commit is contained in:
2022-02-21 15:57:52 +01:00
parent b491394670
commit 218f11377f

View File

@@ -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