aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-10-13 10:15:02 -0700
committerGravatar Tom Willemse2022-10-13 10:17:25 -0700
commit66165bdecea54888967fcc6a8c29a3df09a18256 (patch)
tree83f490b15c84451ec638b77f4dc346274a76b170
parentde8d1094fca307b44020ae85ef0acf0d467cd8c4 (diff)
downloadcount-emails-66165bdecea54888967fcc6a8c29a3df09a18256.tar.gz
count-emails-66165bdecea54888967fcc6a8c29a3df09a18256.zip
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.
-rwxr-xr-xcount-emails2
1 files changed, 1 insertions, 1 deletions
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