summaryrefslogtreecommitdiff
path: root/eml
blob: 1c662600623ed8e927d029cad84a15eb6136b43c (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

count=$(notmuch search tag:new | wc -l)

case "$1" in
    -n) [[ $count > 0 ]] && notify-send "New mail" "$count messages" ;;
    *) echo $count ;;
esac

exit 0;