newmail patch
authorMart Lubbers <mart@martlubbers.net>
Thu, 28 Mar 2019 09:10:05 +0000 (10:10 +0100)
committerMart Lubbers <mart@martlubbers.net>
Thu, 28 Mar 2019 09:10:05 +0000 (10:10 +0100)
email/.local/bin/newmail.sh

index 4290971..a1828a0 100755 (executable)
@@ -3,7 +3,7 @@ newmail="$(find ~/.local/share/offlineimap/mail/INBOX/new/ -type f | wc -l)"
 if [ "$newmail" -eq 1 ]
 then
        notify-send "1 new email!"
-else if [ "$newmail" -ne 0 ]
+elif [ "$newmail" -ne 0 ]
 then
        notify-send "$newmail new emails!"
 fi