From 66165bdecea54888967fcc6a8c29a3df09a18256 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 13 Oct 2022 10:15:02 -0700 Subject: Check number of ‘inbox’ and ‘unread’ items with notmuch The way I deal with emails in notmuch apparently means that a lot of them remain unread after I'm done with them, but they don't stay in my inbox. So what's unread in my inbox is what I really care about. --- count-emails | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/count-emails b/count-emails index 113f95b..3cd59e5 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 (run/sexp (notmuch count tag:unread))) + (display (run/sexp (notmuch count tag:inbox and tag:unread))) (begin (let* ((mail-root (string-append (getenv "HOME") "/documents/mail")) (unread-emails -- cgit v1.2.3-54-g00ecf