dotfiles/scripts/check_mail.sh

9 lines
146 B
Bash
Raw Normal View History

2018-09-19 18:18:49 +02:00
#!/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