scripts/mail-count.bash
coderkun 8eef24bb1b Change folder for mail scripts
Change the folder mail scripts operate on from “Downloads” to
“Dokumente”.
2019-12-25 20:55:05 +01:00

13 lines
207 B
Bash
Executable file

#!/bin/bash
# Settings
MAILDIRNEW="$HOME/Dokumente/eMails/*/INBOX/new/"
# Count new mails
MAILNEW="$(find $MAILDIRNEW -type f | wc -l)"
echo $MAILNEW
echo $MAILNEW
[ ${MAILNEW} -ge 1 ] && exit 33
exit 0