dotfiles/.scripts/mailnotify.sh

9 lines
127 B
Bash
Executable File

#!/bin/bash
ml="$(find $HOME/MAIL/offlineIMAP/*/INBOX/new -type f | wc -l)"
if (( ml > 0 )); then
echo $ml
else
echo "0"
fi