X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=email%2F.local%2Fbin%2Fnewmail.sh;h=4290971a65797de68c4fdd7fd9ddfd5966c64c50;hb=8da7d88b48dda854cd7483653b4885eb282ea35d;hp=a0af1ad5ee42fc37c42fd59e5b168538d9fc0995;hpb=0dbd02ab41dbe96cbbb3fda499f97e857196862d;p=dotfiles.git diff --git a/email/.local/bin/newmail.sh b/email/.local/bin/newmail.sh index a0af1ad..4290971 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!" +else if [ "$newmail" -ne 0 ] then notify-send "$newmail new emails!" fi