diff options
author | Ben Sima <ben@bsima.me> | 2018-07-10 19:27:41 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-07-10 19:27:41 -0700 |
commit | 044a244083c24dc5ebed3e15fdbbe8be120b2dd7 (patch) | |
tree | 6ea22c2fba71a9c94e0cdfa191951032977e222e /eml | |
parent | 9ab4be429feb06ae424f82d918f42bc728a382ac (diff) |
eml: use notmuch count
Diffstat (limited to 'eml')
-rwxr-xr-x | eml | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" ;; |