scripts/mail-count.bash

13 lines
205 B
Bash
Executable file

#!/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