From de8d1094fca307b44020ae85ef0acf0d467cd8c4 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 25 Sep 2022 23:08:51 -0700 Subject: Simplify counting emails using notmuch --- count-emails | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3-2-g0d8e