X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=email%2F.local%2Fbin%2Fnewmail.sh;h=a1828a00ef7a6797bd54813e80de3d1a9306c1fa;hb=fd57a8300fac68be0dcfbe18b2ad3a1d976933ee;hp=a0af1ad5ee42fc37c42fd59e5b168538d9fc0995;hpb=0dbd02ab41dbe96cbbb3fda499f97e857196862d;p=dotfiles.git diff --git a/email/.local/bin/newmail.sh b/email/.local/bin/newmail.sh index a0af1ad..a1828a0 100755 --- a/email/.local/bin/newmail.sh +++ b/email/.local/bin/newmail.sh @@ -1,6 +1,9 @@ #!/bin/sh newmail="$(find ~/.local/share/offlineimap/mail/INBOX/new/ -type f | wc -l)" -if [ "$newmail" -ne 0 ] +if [ "$newmail" -eq 1 ] +then + notify-send "1 new email!" +elif [ "$newmail" -ne 0 ] then notify-send "$newmail new emails!" fi