someblocks/blocks-mail

3 lines
115 B
Plaintext

unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/INBOX/new/ -type f | wc -l 2>/dev/null)"
echo $unread