diff --git a/mail-count.bash b/mail-count.bash new file mode 100755 index 0000000..944e91f --- /dev/null +++ b/mail-count.bash @@ -0,0 +1,13 @@ +#!/bin/bash + +# Settings +MAILDIRNEW="$HOME/Downloads/Mail/*/INBOX/new/" + +# Count new mails +MAILNEW="$(find $MAILDIRNEW -type f | wc -l)" + +echo $MAILNEW +echo $MAILNEW +[ ${MAILNEW} -ge 1 ] && exit 33 + +exit 0