Add script to count new mails
This commit is contained in:
parent
8295004858
commit
101d3fda67
1 changed files with 13 additions and 0 deletions
13
mail-count.bash
Executable file
13
mail-count.bash
Executable file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue