summaryrefslogtreecommitdiff
path: root/eml
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-07-10 19:27:41 -0700
committerBen Sima <ben@bsima.me>2018-07-10 19:27:41 -0700
commit044a244083c24dc5ebed3e15fdbbe8be120b2dd7 (patch)
tree6ea22c2fba71a9c94e0cdfa191951032977e222e /eml
parent9ab4be429feb06ae424f82d918f42bc728a382ac (diff)
eml: use notmuch count
Diffstat (limited to 'eml')
-rwxr-xr-xeml2
1 files changed, 1 insertions, 1 deletions
diff --git a/eml b/eml
index 1c66260..8b00b90 100755
--- a/eml
+++ b/eml
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-count=$(notmuch search tag:new | wc -l)
+count=$(notmuch count tag:new)
case "$1" in
-n) [[ $count > 0 ]] && notify-send "New mail" "$count messages" ;;