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

count=$(notmuch count tag:inbox and tag:unread)

if [[ $count > 0 ]]; then
    notify-send "New mail" "$count messages"
else
    notify-send "No new mail"
fi

echo $count
exit 0;