84c30c612ca9afb6f2297e4f73ac268454efa5fd
[dotfiles.git] / email / .config / offlineimap / newmail.sh
1 #!/bin/sh
2 newmail="$(find ~/.mutt/mail/INBOX/new/ -type f | wc -l)"
3 if [ "$newmail" -ne 0 ]
4 then
5 notify-send "$newmail new emails!"
6 fi
7 notmuch new
8 vdirsyncer sync