.
[dotfiles.git] / email / .local / bin / newmail.sh
index 8d8c35c..a1828a0 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
-newmail="$(find ~/.local/share/mutt/mail/INBOX/new/ -type f | wc -l)"
-if [ "$newmail" -ne 0 ]
+newmail="$(find ~/.local/share/offlineimap/mail/INBOX/new/ -type f | wc -l)"
+if [ "$newmail" -eq 1 ]
+then
+       notify-send "1 new email!"
+elif [ "$newmail" -ne 0 ]
 then
        notify-send "$newmail new emails!"
 fi