aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-09-25 23:08:51 -0700
committerGravatar Tom Willemse2022-09-25 23:08:51 -0700
commitde8d1094fca307b44020ae85ef0acf0d467cd8c4 (patch)
tree1b75ae846cc1ed0330c8baa9026b343b3a04a9fc
parenta3be7607212d481b1b261b33e00bcf1d13a6abe6 (diff)
downloadcount-emails-de8d1094fca307b44020ae85ef0acf0d467cd8c4.tar.gz
count-emails-de8d1094fca307b44020ae85ef0acf0d467cd8c4.zip
Simplify counting emails using notmuch
-rwxr-xr-xcount-emails2
1 files changed, 1 insertions, 1 deletions
diff --git a/count-emails b/count-emails
index 4bb75c1..113f95b 100755
--- a/count-emails
+++ b/count-emails
@@ -5,7 +5,7 @@ exec scsh -o thread-fluids -s "$0" "$@"
!#
(if (exec-path-search "notmuch" (thread-fluid exec-path-list))
- (display (length (run/sexp (notmuch search --output=files --format=sexp tag:unread))))
+ (display (run/sexp (notmuch count tag:unread)))
(begin
(let* ((mail-root (string-append (getenv "HOME") "/documents/mail"))
(unread-emails