enable calendar, add urls newsboat, update to tl2019, output jpg for resize script...
[dotfiles.git] / email / .local / bin / newmail.sh
1 #!/bin/sh
2 newmail="$(find ~/.local/share/offlineimap/mail/INBOX/new/ -type f | wc -l)"
3 if [ "$newmail" -eq 1 ]
4 then
5 notify-send "1 new email!"
6 elif [ "$newmail" -ne 0 ]
7 then
8 notify-send "$newmail new emails!"
9 fi
10 notmuch new
11 vdirsyncer sync