13 lines
207 B
Bash
Executable file
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
|