dotfiles/scripts/check_mail.sh
2018-09-19 18:18:49 +02:00

9 lines
146 B
Bash
Executable File

#!/bin/sh
maildirs="$HOME/Mail/magazino/INBOX/new/"
ml="$(find "$maildirs" -type f | wc -l)"
if [ $ml > 0 ]; then
echo "$ml"
else
echo "0"
fi