summaryrefslogtreecommitdiff
path: root/eml
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-04-10 19:22:19 -0700
committerBen Sima <ben@bsima.me>2019-04-10 19:22:19 -0700
commitd28b372fc6a7f4a549687f33ebe4a34b2434ee3f (patch)
tree09057d7380e524a09277380db2fd3f8948965224 /eml
parent60d5cb20cdb0e84918a43228eb86218285d945b4 (diff)
fix email unread script
Diffstat (limited to 'eml')
-rwxr-xr-xeml2
1 files changed, 1 insertions, 1 deletions
diff --git a/eml b/eml
index 8b00b90..9f598a7 100755
--- a/eml
+++ b/eml
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-count=$(notmuch count tag:new)
+count=$(notmuch count tag:inbox and tag:unread)
case "$1" in
-n) [[ $count > 0 ]] && notify-send "New mail" "$count messages" ;;