arch-rice/.local/bin/mails_unread.sh

6 lines
157 B
Bash
Raw Permalink Normal View History

2022-10-04 21:27:41 +00:00
#!/bin/bash
unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f 2>/dev/null | wc -l 2>/dev/null)"
echo $unread